Hello All,
I am in the process of researching solutions to provide users with the ability to choose from various "Account types" when signing up on my site, each with it's own different set of fields to fill out.

I.E.-Business Owner would get fields such as business name and location.

Suggestions? Thoughts?

Thanks
Devon

Comments

module-node’s picture

It can be done

I have done it with the help of Auto Assign Role Module ,such that with the help of this module , we can create various registration path's and with respect to these registeration paths we can add the forms and fields in user.module

For example , i have created a path in Auto Assign Role Module for a particular role as user/register/seller and thus in the user.module under function user_register() i have written

if(arg(2)==seller)
{
$form['personal'] = array('#type' => 'fieldset',
--------/* Write your codes here */-----

thus when the path for seller is called then the fields with respect to the seller will be displayed in it , like the same we can do for other paths and roles

Try it , and let me know if you have any queries regarding to it

cyberswat’s picture

I think the more correct way of approaching this problem is to take advantage of the integration between the content_profile and autoassignrole modules.

CraftyDevon’s picture

Thanks Guys,
I will begin looking into each method. Syberswat, could you perhaps be a bit more detailed, or point me towards a good source?