Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By nagendras on
Could any one help me to configure multiple registration forms having different fields for different roles in Drupal 7. I have 2 roles in my system - Role A & Role B. For each role, I want to capture different fields during the registration page.
In drupal 6, I used to achieve this using content_profile & autoassignrole. What is the best option available in Drupal 7.
-Nagendra
Comments
This should work for
This should work for you:
http://drupal.org/project/autoassignrole
I work at Drupar.com
I dont see how this is the fix
I dont see how this is the answer. Yes it does allow roles to be auto assigned but how does that make different registration forms?
_
For d7 you also need profile2 to create different profiles for different roles.
Autoassign in Development
Hi,
I noticed that the Auto Assign Role modules is still in development for Drupal 7. Is there another module for Drupal 7 that I can use that will allow me to do the same thing?
Thanks
_
not that i know of, and module duplication is generally discouraged. The best way forward would be to contribute to the effort working on updating the module.
Need it too!
Hello I don't have enough experience yet on Drupal to help updating the module :)
But I too was using content profile + auto assign role on Drupal 6 to create the three different registration pages I need!
Hope I'll be available soon! I'll try to work on something else meanwhile.
Drupal rocks. The more I learn about it the more I love it!
Nicolas
Développeur Drupal Freelance — Design Web & Intégration
Profile2 Registration Path
I've been looking for an alternative to Auto Assign Role myself and eventually came across a module called Profile2 Registration Path: http://drupal.org/project/profile2_regpath
Very easy to setup and I now have two different reg forms for two different user types displaying only the fields I want for each one.
Multiple registration module
Maybe it will be for someone helpful, module Multiple registration could resolve it.
It can be done.
Yes. It is very simple to do.
All you've to do is to download and install Profile2 and Profile2 Registry Path modules.
Then go to path admin/structure/profiles in your site and setup a custom profile. Add fields under the link "Manage fields" with custom fields that you want to show for role 1. Then go to edit page of that custom profile edit link and configure special URL and settings for that profile role.
Repeat the same step for role 2.
Then create a page where you can show two buttons/links referring to path of registration roles for each profile.
When you are all set, go to each of different role registration form pages and you'll see different fields for each role.
Regards!
Wasim Hyder
Check https://www.drupal.org
Check https://www.drupal.org/project/registration_types module, though it's only for D8.