Can you remove option in drop down list depending on previous selection?

  • Profile Image
    CTCKA
    Asked on September 29, 2014 at 05:26 AM

    Hi,

    I am making a form that students choose an activity to do and they have a 1st, 2nd and 3rd choice.

    For example, if in the 1st choice they choose Badminton, I would like to have Badminton removed from the 2nd and 3rd drop down list. If in the 2nd choice, the choose Football, then Badminton and Football will be removed from the 3rd drop down.

    Is this possible?

    Thanks

    James

    Badminton
    Basketball
    Bowling
    Football
    Games Medley
    Gym
    Rugby
    Swimming
    Volleyball
  • Profile Image
    EltonCris
    Answered on September 29, 2014 at 10:02 AM

    Hi,

    Unfortunately, we do not have that kind of feature in the form builder as far as I know. However, I think dynamic drop down may still be useful http://widgets.jotform.com/widget/dynamic_dropdowns. Or you can use this widget which disables option after it's selected, http://widgets.jotform.com/widget/asmselect, though you can't make conditions in it that syncs on the other field. It's not possible.

    Furthermore, you can always implement the function you want by applying it manually to your form source code. http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form. You can take your form source code and inject scripts into it.

    Hope this still helps. Thank you!

  • Profile Image
    CTCKA
    Answered on October 01, 2014 at 06:47 AM

    Many thanks for this!

    I used the asmselect and working brilliantly! Are you able to put a max number limit that you can select as that would be useful.

    Thanks

    James

  • Profile Image
    Ben
    Answered on October 01, 2014 at 09:19 AM

    Hi James.

    Unfortunately there is no condition that could be used to get the number of items that have been selected. I have also tried using form calculation widget to see if that would help, but it does not seem to get any details neither.

    I see that you have the maximum allowed 3 notification shown and if you want to have this automated feature as well you could use the source code method as mentioned by my colleague above and add this feature to it afterwards - How to get the Full Source Code of your Form

    Do let us know if we can assist you any further.

    Best Regards,
    Ben