Registration form - change submit text / removing role

Archived from the Web Auction Discussion forum.

yvan — Wed May 06, 2009 11:50 am

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

fongchun — Wed May 06, 2009 12:54 pm

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?


yvan — Fri May 08, 2009 6:19 am

Thanks so much! Both of your suggestions worked for me.

  • Yvan