Page 1 of 1

Registration form - change submit text / removing role

PostPosted: Wed May 06, 2009 11:50 am
by yvan
I need to apply 2 revisions to the registration form on my site:

1) change the submit button text to read "Register" instead of "Save"
2) remove the "Role" field label and "USER" text

How can I accomplish these things?

I tried updating the "fields.ini" file so that it hides the "role" elements, btw, -- but they're still being shown. I can't figure out how to hide them.

Please advise.

Thanks!
- Yvan

PostPosted: Wed May 06, 2009 12:54 pm
by fongchun
For 1, I've made a blog post about it a while ago. You can find it here.

For 2, you'll probably have edit the permissions of it in the delegate class. So something like this:

Code: Select all
function role__permissions(&$record){
   return Dataface_PermissionsTool::NO_ACCESS()
}


You can edit the function to exactly what you need to hide the role field. What do you mean by "USER" text?

PostPosted: Fri May 08, 2009 6:19 am
by yvan
Thanks so much! Both of your suggestions worked for me.

- Yvan