Creating separate registration forms for each role
Hi, In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules? Thanks in advance, Raj Sekharan
Hi, There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers. http://drupal.org/project/autoassignrole Regards, Aradhana rajasekharan wrote:
Hi,
In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules?
Thanks in advance, Raj Sekharan
I believe he wants the actual form to be different. We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly. - kwinters Aradhana wrote:
Hi,
There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers.
http://drupal.org/project/autoassignrole
Regards, Aradhana
rajasekharan wrote:
Hi,
In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules?
Thanks in advance, Raj Sekharan
A combination of auto-assign-role and content-profile-register does it. NikLP could tell you more... ________________________________________ De : development-bounces@drupal.org [development-bounces@drupal.org] de la part de Ken Winters [kwinters@coalmarch.com] Date d'envoi : mardi 8 septembre 2009 21:30 À : development@drupal.org Objet : Re: [development] Creating separate registration forms for each role I believe he wants the actual form to be different. We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly. - kwinters Aradhana wrote:
Hi,
There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers.
http://drupal.org/project/autoassignrole
Regards, Aradhana
rajasekharan wrote:
Hi,
In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules?
Thanks in advance, Raj Sekharan
Thanks much! I got what I wanted. I am going to use autoassignroles module and then use the method Ken has mentioned - add profile attributes and then use the necessary hooks to modify the form to show the necessary fields. Ken Winters wrote:
I believe he wants the actual form to be different.
We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly.
- kwinters
Aradhana wrote:
Hi,
There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers.
http://drupal.org/project/autoassignrole
Regards, Aradhana
rajasekharan wrote:
Hi,
In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules?
Thanks in advance, Raj Sekharan
Great! I just wanted to mention that the hooks method might not be required for your particular needs. Autoassignrole plus content_profile are pretty handy, but our specific case had some elaborate requirements so we needed the hooks anyway. - kwinters rajasekharan wrote:
Thanks much! I got what I wanted. I am going to use autoassignroles module and then use the method Ken has mentioned - add profile attributes and then use the necessary hooks to modify the form to show the necessary fields.
Ken Winters wrote:
I believe he wants the actual form to be different.
We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly.
- kwinters
Aradhana wrote:
Hi,
There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers.
http://drupal.org/project/autoassignrole
Regards, Aradhana
rajasekharan wrote:
Hi,
In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules?
Thanks in advance, Raj Sekharan
I tried the content_profile method suggested by Ken Winters, for creating a separate registration form with extra custom fields. I was able to add fields to the registration form. But now I am faced with another problem - even the default registration form shows the fields that I have added for the suppliers' form. Is there anyway some of these field can be restricted to the reg form for only certain roles? I am using this in conjunction with the autoassignrole module. Thanks in advance. Raj Ken Winters wrote:
Great! I just wanted to mention that the hooks method might not be required for your particular needs. Autoassignrole plus content_profile are pretty handy, but our specific case had some elaborate requirements so we needed the hooks anyway.
- kwinters
rajasekharan wrote:
Thanks much! I got what I wanted. I am going to use autoassignroles module and then use the method Ken has mentioned - add profile attributes and then use the necessary hooks to modify the form to show the necessary fields.
Ken Winters wrote:
I believe he wants the actual form to be different.
We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly.
- kwinters
Aradhana wrote:
Hi,
There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers.
http://drupal.org/project/autoassignrole
Regards, Aradhana
rajasekharan wrote:
Hi,
In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules?
Thanks in advance, Raj Sekharan
I can't take credit ;-) The module project page says "the module also supports separate content profiles for different roles." so play around in the admin looking for that. I haven't used that part of it personally. If all else fails, hook_user. - kwinters On Sep 9, 2009, at 12:38 PM, rajasekharan wrote:
I tried the content_profile method suggested by Ken Winters, for creating a separate registration form with extra custom fields. I was able to add fields to the registration form. But now I am faced with another problem - even the default registration form shows the fields that I have added for the suppliers' form. Is there anyway some of these field can be restricted to the reg form for only certain roles? I am using this in conjunction with the autoassignrole module.
Thanks in advance. Raj
Ken Winters wrote:
Great! I just wanted to mention that the hooks method might not be required for your particular needs. Autoassignrole plus content_profile are pretty handy, but our specific case had some elaborate requirements so we needed the hooks anyway.
- kwinters
rajasekharan wrote:
Thanks much! I got what I wanted. I am going to use autoassignroles module and then use the method Ken has mentioned - add profile attributes and then use the necessary hooks to modify the form to show the necessary fields.
Ken Winters wrote:
I believe he wants the actual form to be different.
We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly.
- kwinters
Aradhana wrote:
Hi,
There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers.
http://drupal.org/project/autoassignrole
Regards, Aradhana
rajasekharan wrote:
Hi,
In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules?
Thanks in advance, Raj Sekharan
-------------------------------------------------------------------------------------------- Ken Winters - Software Developer Coalmarch Productions LLC new. media. solutions. 125 Edinburgh South Dr Suite 200 Cary NC 27511 Work: (919) 481-2895 Fax: (919) 869-2860 www.coalmarch.com
hook_ form_alter is the method.. you can tweak your form as per your requirement Aradhana. rajasekharan wrote:
I tried the content_profile method suggested by Ken Winters, for creating a separate registration form with extra custom fields. I was able to add fields to the registration form. But now I am faced with another problem - even the default registration form shows the fields that I have added for the suppliers' form. Is there anyway some of these field can be restricted to the reg form for only certain roles? I am using this in conjunction with the autoassignrole module.
Thanks in advance. Raj
Ken Winters wrote:
Great! I just wanted to mention that the hooks method might not be required for your particular needs. Autoassignrole plus content_profile are pretty handy, but our specific case had some elaborate requirements so we needed the hooks anyway.
- kwinters
rajasekharan wrote:
Thanks much! I got what I wanted. I am going to use autoassignroles module and then use the method Ken has mentioned - add profile attributes and then use the necessary hooks to modify the form to show the necessary fields.
Ken Winters wrote:
I believe he wants the actual form to be different.
We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly.
- kwinters
Aradhana wrote:
Hi,
There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers.
http://drupal.org/project/autoassignrole
Regards, Aradhana
rajasekharan wrote:
Hi,
In a current project, I have to create a separate registration form for each role. For example, "customers" has a registration form and "vendors" have a registration form that is separate. Any idea how I may achieve this using existing drupal modules?
Thanks in advance, Raj Sekharan
Just wanted to add that I've looked into the profile_role module along with this change mentioned here: http://drupal.org/node/431454 To get only the relevant form fields to show up in the role specific registration form. Aradhana wrote:
hook_ form_alter is the method.. you can tweak your form as per your requirement
Aradhana.
rajasekharan wrote:
I tried the content_profile method suggested by Ken Winters, for creating a separate registration form with extra custom fields. I was able to add fields to the registration form. But now I am faced with another problem - even the default registration form shows the fields that I have added for the suppliers' form. Is there anyway some of these field can be restricted to the reg form for only certain roles? I am using this in conjunction with the autoassignrole module.
Thanks in advance. Raj
Ken Winters wrote:
Great! I just wanted to mention that the hooks method might not be required for your particular needs. Autoassignrole plus content_profile are pretty handy, but our specific case had some elaborate requirements so we needed the hooks anyway.
- kwinters
rajasekharan wrote:
Thanks much! I got what I wanted. I am going to use autoassignroles module and then use the method Ken has mentioned - add profile attributes and then use the necessary hooks to modify the form to show the necessary fields.
Ken Winters wrote:
I believe he wants the actual form to be different.
We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly.
- kwinters
Aradhana wrote:
Hi,
There is a drupal module names auto assign role.. which provides same functionality. We can differentiate forms on the basis of url. e.g assign different url for vendors registration and different url for customers.
http://drupal.org/project/autoassignrole
Regards, Aradhana
rajasekharan wrote: > Hi, > > In a current project, I have to create a separate registration > form for each role. For example, "customers" has a registration > form and "vendors" have a registration form that is separate. > Any idea how I may achieve this using existing drupal modules? > > Thanks in advance, > Raj Sekharan
have you used this module?? if it solves the purpose... i will also try this module. thanks Aradhana rajasekharan wrote:
Just wanted to add that I've looked into the profile_role module along with this change mentioned here:
To get only the relevant form fields to show up in the role specific registration form.
Aradhana wrote:
hook_ form_alter is the method.. you can tweak your form as per your requirement
Aradhana.
rajasekharan wrote:
I tried the content_profile method suggested by Ken Winters, for creating a separate registration form with extra custom fields. I was able to add fields to the registration form. But now I am faced with another problem - even the default registration form shows the fields that I have added for the suppliers' form. Is there anyway some of these field can be restricted to the reg form for only certain roles? I am using this in conjunction with the autoassignrole module.
Thanks in advance. Raj
Ken Winters wrote:
Great! I just wanted to mention that the hooks method might not be required for your particular needs. Autoassignrole plus content_profile are pretty handy, but our specific case had some elaborate requirements so we needed the hooks anyway.
- kwinters
rajasekharan wrote:
Thanks much! I got what I wanted. I am going to use autoassignroles module and then use the method Ken has mentioned - add profile attributes and then use the necessary hooks to modify the form to show the necessary fields.
Ken Winters wrote:
I believe he wants the actual form to be different.
We did something similar using the Profile module to create the fields for all roles and then hook_user, hook_form, etc. to make sure that only the right fields are displayed based on arg(2) (or whatever) and then processed correctly.
- kwinters
Aradhana wrote: > Hi, > > There is a drupal module names auto assign role.. which provides > same functionality. We can differentiate forms on the basis of > url. e.g assign different url for vendors registration and > different url for customers. > > http://drupal.org/project/autoassignrole > > Regards, > Aradhana > > rajasekharan wrote: >> Hi, >> >> In a current project, I have to create a separate registration >> form for each role. For example, "customers" has a registration >> form and "vendors" have a registration form that is separate. >> Any idea how I may achieve this using existing drupal modules? >> >> Thanks in advance, >> Raj Sekharan
Yes, it is working for me. I used the dev version instead of the release one. Aradhana wrote:
have you used this module?? if it solves the purpose... i will also try this module. thanks
Aradhana
rajasekharan wrote:
Just wanted to add that I've looked into the profile_role module along with this change mentioned here:
To get only the relevant form fields to show up in the role specific registration form.
Aradhana wrote:
hook_ form_alter is the method.. you can tweak your form as per your requirement
Aradhana.
rajasekharan wrote:
I tried the content_profile method suggested by Ken Winters, for creating a separate registration form with extra custom fields. I was able to add fields to the registration form. But now I am faced with another problem - even the default registration form shows the fields that I have added for the suppliers' form. Is there anyway some of these field can be restricted to the reg form for only certain roles? I am using this in conjunction with the autoassignrole module.
Thanks in advance. Raj
Ken Winters wrote:
Great! I just wanted to mention that the hooks method might not be required for your particular needs. Autoassignrole plus content_profile are pretty handy, but our specific case had some elaborate requirements so we needed the hooks anyway.
- kwinters
rajasekharan wrote:
Thanks much! I got what I wanted. I am going to use autoassignroles module and then use the method Ken has mentioned - add profile attributes and then use the necessary hooks to modify the form to show the necessary fields.
Ken Winters wrote: > I believe he wants the actual form to be different. > > We did something similar using the Profile module to create the > fields for all roles and then hook_user, hook_form, etc. to make > sure that only the right fields are displayed based on arg(2) > (or whatever) and then processed correctly. > > - kwinters > > Aradhana wrote: >> Hi, >> >> There is a drupal module names auto assign role.. which >> provides same functionality. We can differentiate forms on the >> basis of url. e.g assign different url for vendors registration >> and different url for customers. >> >> http://drupal.org/project/autoassignrole >> >> Regards, >> Aradhana >> >> rajasekharan wrote: >>> Hi, >>> >>> In a current project, I have to create a separate registration >>> form for each role. For example, "customers" has a >>> registration form and "vendors" have a registration form that >>> is separate. Any idea how I may achieve this using existing >>> drupal modules? >>> >>> Thanks in advance, >>> Raj Sekharan
participants (4)
-
Aradhana -
fgm -
Ken Winters -
rajasekharan