Can a selection from a dropdown list limit the choices to be selected in a single choice list?

  • NippersD
    Asked on March 25, 2019 at 5:47 PM

    please see the example below.  For example, in Main_Group, if I choose "2_selection", only display in the next field Choice, option_1, option_2 and option_5.  if I choose "1_selection", only display  in the Choice field, option_1, option_2.

    Are there any conditions that can be created to limit the display of choices?

     

    Dynamic Dropdowns widget will not work as the second option list will not respond (cannot select) within condition logic.

  • Jed_C
    Replied on March 25, 2019 at 8:39 PM

    What you can do is create a multiple dropdown list with different options. Now, apply a conditional rule that will show and hide other dropdown list based on selection.

    Reference guide: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer.

    You can test my sample form here https://form.jotform.com/90838080994974. Feel free to clone it https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL so you can how I modified the condition.

    Let us know if you have any questions or if you need further assistance. 

  • NippersD
    Replied on April 1, 2019 at 7:45 PM

    thanks, but your sample form missed the point.  If I select from "Main_Group" = "1_Selection", then only display in "Choice", "option 1", "option 3" and "option 5".  If I select from "Main_Group" = "2_Selection", then only display in "Choice", "option 1", and "option 2".  etc... 

  • Jed_C
    Replied on April 1, 2019 at 9:11 PM

    You'll have to create sets of radio button for Selection 1, 2 and 3. After that, I applied the show and hide condition https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer.

    1554167382The Easiest Online Form Builde Screenshot 10

    Please check my sample form https://form.jotform.com/90838080994974 again.

  • NippersD
    Replied on April 2, 2019 at 9:45 AM

    thanks.  I know how to do this already and was hoping for a single radio button field to be conditionally set with rules based on the main_group.  Depending on the size of Main_Group drop list, (your) method would have numerous individual fields just to manage the selection options.  for example, if I have 10 items in Main_Group drop-list, and all of them have option 1 within their Choice _selection fields, that is 10 different conditional rules to setup, and if I want to run a report later (from an Excel output of my submission data), option 1 would show up in 10 different columns.... then I have to do macro programming to figure out proper counts.  

    Dynamic Dropdowns widget did not work for me as the second option list did not respond (cannot select) within condition logic.  Am I doing something wrong here?  Could you suggest another widget?

  • Richie JotForm Support
    Replied on April 2, 2019 at 12:23 PM

    Checking from your requirements, the only widget that can do this is the Dynamic Dropdown widget.

    Can a selection from a dropdown list limit the choices to be selected in a single choice list? Image 1 Screenshot 20

    If you want to nest a selection, make sure to indent the option.

    Example:

    Group A
     Option A1
     Option A2
    Group B
      Option B1

    Please give it a try and let us know if you have further questions.

  • NippersD
    Replied on April 2, 2019 at 1:26 PM

    With this widget, how do you get the second level option list to respond (to make a selection) within condition logic?  When I tried this, the widget does not seem to allow a selection for the second level.  eg.  Option C1, C2, C3 can have conditions written for them, however, Option C2-1, C2-2... are not showing for selection in conditional logic.

  • Richie JotForm Support
    Replied on April 2, 2019 at 2:49 PM

    You may use the Form Calculation widget to check the value of the option C2-1

    Can a selection from a dropdown list limit the choices to be selected in a single choice list? Image 1 Screenshot 30

    *Make sure to change the value to String by clicking on the number 0-9 beside the field until it converts to A-Z.

    and use that in the condition.

    Can a selection from a dropdown list limit the choices to be selected in a single choice list? Image 2 Screenshot 41

    Please give it at ry and let us know how it goes.

  • NippersD
    Replied on April 4, 2019 at 12:33 PM

    thank you.  your screenshot above gave away the answer I was looking for under "Calculation":  that the lookup field was a combination of both client and details as a single string (Client 2opt_3_Details).  Now I can use this in conditions only, and do not need to have my selections dependent on calculated values.