Forums Forums Search & Filter Pro Load next field depending on first choice

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #51180

    Hi Ross,

    I was wondering if it is possible to load a new form field depending on the first choice.
    An example:

    I got for main categories:
    – food
    – drink
    – entertainment

    In the category “food” there are children:
    – breakfast
    – lunch
    – dinner
    – BBQ

    Is it possible to select food, and have the next field automatically load (fill with) the children of food in the same window. Likewise for the other categories?

    Cheers.

    Trevor
    #51181

    You could do this yourself by coding some custom javascript. Have all the fields in place but hidden, and use the onchange event to reveal or hide based on the logic you use.

    Anonymous
    #51183

    I’d love to do that. But I’m not that great of a coder.
    Is there some place I could start? I assume there is a trigger somewhere in the code that you should use.

    It’s probably something like

    if food addClass (showItem);

    And have your CSS .showItem { display:block;}

    Like I said I’m not that of a coder 🙂

    Trevor
    #51184

    It is not something I can do for you, but if you search StackExchange for ideas An example Google search I would start with:

    site:http://stackexchange.com/ jquery conditionally hide/reveal form controls based on changes in form
    

    Be warned, it will get heavy (learning).

    Anonymous
    #51186

    Ok, but it’s not something that is build-in into this plugin then… to bad…

    Trevor
    #51188

    Not at this time, but if you want to post a request in the feature requests forum.

Viewing 6 posts - 1 through 6 (of 6 total)