Page 1 of 1

Conditional fields in user registration forms.

PostPosted: September 14th, 2011, 3:36 pm
by banta
Hi,

Is it possible to have conditional fields in registration forms?

For example, I would like to have a "Category" drop down, when "Category A" is selected, a second drop down would be populated with "Sub Categories".

Thank you.

Re: Conditional fields in user registration forms.

PostPosted: September 14th, 2011, 11:44 pm
by Bruce C
You can use the CSS Class function in the custom registration form, and use the s2hacks file to do that.

This should help: http://webdesign.about.com/od/dhtml/a/aa101507.htm

Re: Conditional fields in user registration forms.

PostPosted: September 15th, 2011, 4:38 am
by banta
Hi Ace,

Thanks for the reply. I'm not sure which hooks run during the registration, but I'll check it out, thanks for your help.

Re: Conditional fields in user registration forms.

PostPosted: September 15th, 2011, 11:06 pm
by Bruce C
You can use the last option on the custom registration for the Javascript, I believe you can use the toggle command as shown here (http://thedesignspace.net/MT2archives/0 ... nLLANSraSo) to do this.