<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I can't take credit ;-)</div><div><br></div><div>The module project page says "the module also supports separate content profiles for different roles." so play around in the admin looking for that. &nbsp;I haven't used that part of it personally.</div><div><br></div><div>If all else fails, hook_user.</div><div><br></div><div>- kwinters</div><br><div><div>On Sep 9, 2009, at 12:38 PM, rajasekharan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>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.<br><br>Thanks in advance.<br>Raj<br><br>Ken Winters wrote:<br><blockquote type="cite">Great!<br></blockquote><blockquote type="cite">I just wanted to mention that the hooks method might not be required for your particular needs.<br></blockquote><blockquote type="cite">Autoassignrole plus content_profile are pretty handy, but our specific case had some elaborate requirements so we needed the hooks anyway.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- kwinters<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">rajasekharan wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">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.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Ken Winters wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I believe he wants the actual form to be different.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">- kwinters<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Aradhana wrote:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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.<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://drupal.org/project/autoassignrole">http://drupal.org/project/autoassignrole</a><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Regards,<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Aradhana<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">rajasekharan wrote:<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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?<br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Thanks in advance,<br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Raj Sekharan <br></blockquote></blockquote></blockquote></blockquote></blockquote><br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--------------------------------------------------------------------------------------------<br><br>Ken Winters - Software Developer<br>Coalmarch Productions LLC<br>new. media. solutions.<br><br>125 Edinburgh South Dr Suite 200<br>Cary NC 27511<br>Work: (919) 481-2895<br>Fax:&nbsp;(919) 869-2860<br><a href="http://www.coalmarch.com/">www.coalmarch.com</a></div></div></div></div></div></div></div></span> </div><br></body></html>