• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Nested custom field options?

SchmitzIT

Well-known member
#1
Would it be possible to add nested drop-down lists as custom user-fields during registration?

I.e. A user will pick their country of residence from a drop-down, and in the second drop-down for state, they'd then only see the applicable states for that country.

I.e.

Combo-Box 1 - Country:
UK
US

Combo-Box 2 - State:
US - Alabama
US - California
UK - Scotland
UK - Wales

Selecting US in combo-box 1 would only display Alabama and California in combo-box 2.

I've been looking at the custom-fields part of the admin panel, and have not seen it can be done in there. Would this require an add-on?
 

Jake Bunce

XenForo moderator
Staff member
#2
This really requires javascript to do it well and have that kind of interaction between the two fields. Of course you can also just display all countries / states in one long list. That would be easier, but less interactive.