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

Nested custom field options?

Discussion in 'XenForo Questions and Support' started by SchmitzIT, Mar 5, 2013.

  1. SchmitzIT

    SchmitzIT Well-Known Member

    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.


    Combo-Box 1 - Country:

    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?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
    SchmitzIT likes this.

Share This Page