By _michel_ on
Hi.
I want to create my own user creation form, with the fields I want;
how can I do it?
I want to force the creation of a user with a specific role.
Thanks in advance.
Michel.
Hi.
I want to create my own user creation form, with the fields I want;
how can I do it?
I want to force the creation of a user with a specific role.
Thanks in advance.
Michel.
Comments
Do it the Drupal way
1) Add all the fields you want using the profile option. Then mark the ones that you want to include on the registration form.
2) There is a module under user management in the downloads section that will allow you to specify the roles that new users are automatically assigned.
I see no reason to create your own input form. At least from what you have described so far.
not auto assigned!!!
Thank you for answering.
What I need is not an auto registration form for end user.
Someone in the system will create new users (in this case the new users will be assigned the role : clients)
Since I have created different roles with drupal, the form will present all the roles and you check the correct one for your new user.
To avoid errors, I just want to present one choice : clients. And not the others choices of roles.
Even better, I do not want to present any role on the form; I want to make the value automatic and hidden.
So I can create a menu item with : create new clients.
Thanks again.
Your help is wellcome.