How to Hide Options Based on the User's Answer?

  • internationalforms
    Asked on September 20, 2024 at 2:50 AM

    I have a form with a single-choice field labeled "Type of Access", where one of the options is "Single Side Access (All doors in the same line)".

    I would like to set up conditional logic so that when this option is selected:

    1. For all 4 floors, the field "Door Side" should only display the option "Side-A" for each floor.
    2. The field for "Hinges" should allow users to select either LHS (Left-hand side) or RHS (Right-hand side) but restrict them from selecting a mixture of both.

    Could you please guide me on how to set this up?

    Jotform Thread 19205981 Screenshot
  • Sheena JotForm Support
    Replied on September 20, 2024 at 3:08 AM

    Hello internationalforms,

    Thanks for reaching out to Jotform Support. Unfortunately, we can't hide an option based on the user's answer. However, we can set a default answer and disable input in that field using conditions. Regarding the hinges field where you used an input table, conditions won't work here either. The best approach would be to use a basic field, like a single or multiple choice field, and then apply a similar method with the Door side field. Would that work for you?

    Keep us updated and let us know if you need any more help.

  • internationalforms
    Replied on September 20, 2024 at 3:14 AM

    Is it possible to do i i need in the attached form field, its a table?How to Hide Options Based on the Users Answer? Image 1 Screenshot 20

  • Mary Eden JotForm Support
    Replied on September 20, 2024 at 3:25 AM

    Hello internationalforms,

    About your Hinges fields, I noticed that you are currently using a Single Choice element, which allows for only one response to be selected from either the LHS or the RHS, so I believe you are already good on this one.

    Unfortunately, I didn't get the question about the Input Tables, can you explain that to us in more detail so we can help you with a workaround?

    As soon as we hear back from you, we'll be able to help you with this.

  • internationalforms
    Replied on September 20, 2024 at 3:33 AM

    Lets say I select SIngle Side access,
    The in the Tables, COloumn Door Opening side should only show "A" adn Door Hinges Can be only LHS or RHS in cells of both Rows of Coloumn Door-1 Hinges.

  • Eleazar JotForm Support
    Replied on September 26, 2024 at 12:28 AM

    Hello internationalforms,

    You can duplicate the Input Table field, and remove the options you do not want on the duplicate, and then set up a condition to show the correct Input Table when selecting a specific selection. Let me show you how.

    1. On Form Builder, select the Input Table field, right-click on it, then click on Duplicate.
      How to Hide Options Based on the Users Answer? Image 1 Screenshot 70
    2. Select the duplicate Input Table field, and click on the Gear icon, and make the necessary changes, for my example, I removed the option B for Door Opening Side and MHS for Door-1 hinges dropdowns.
      How to Hide Options Based on the Users Answer? Image 2 Screenshot 81
    3. Set up a condition for your Single Choice field to show an Input Table based on the option.
    4. Click on Settings on the orange bar on top.
    5. Click on the Conditions tab on the left.
    6. Select Show/Hide Field.
      How to Hide Options Based on the Users Answer? Image 3 Screenshot 92
    7. Set up the following conditions, then click Save.
      How to Hide Options Based on the Users Answer? Image 4 Screenshot 103
      How to Hide Options Based on the Users Answer? Image 5 Screenshot 114

    Here's a screencast of the result.
    How to Hide Options Based on the Users Answer? Image 6 Screenshot 125

    You can check also check out my sample form here.

    Give it a try and let us know if you need any help.

Your Answer