How to show or hide fields based on user's answer

  • Profile Image
    Jessica
    Asked on August 24, 2022 at 02:08 PM

    Has there been a solution to this issue yet? I am having the same problem. I am trying to create an order form for building materials. I have each material with a drop down box for qty and one for color but I need a text box for each one as the length will always be different for each order and for each product in each order. Jotform has exceeded all of my expectations and has been so helpful I’m surprised this option isn’t available as I’m sure it is a relatively common feature.



    This is a re-post of a comment on How to Show or Hide Fields Based on User's Answer

  • Profile Image
    Isidro_A
    Answered on August 24, 2022 at 04:36 PM

    Hello Jessica,

    Thanks for reaching out to Jotform Support. We'll look into this and get back to you with an update as soon as possible.

    Thank you for your patience.

  • Profile Image
    Isidro_A
    Answered on August 24, 2022 at 05:42 PM

    Hello Jessica,

    Thank you for your patience! I’m sorry you're having difficulties getting that feature to work. That is actually possible using conditional logic, we just need to set up some conditions. Please see the screencast below.

    1661377147_63069a7b9ea7a_Conditional Log

    For reference on what conditional logic I used, you can use my cloned form(https://www.jotform.com/build/222356342798464) as a guide. You can also clone it by following the guide here ( Clone URL guide).

    Give it a try and reach out again if you have any other questions.

  • Profile Image
    Jessica  
    Answered on August 24, 2022 at 06:12 PM

    Thank you so much for your response. That’s not exactly what I am looking for unfortunately. I am using the product list to create an order form. I have several categories for products and then within those categories I have the products and for each product I’d like to have the photo of the product, name of the product and description. Then when someone orders they will select the product check box followed by entering in the quantity, select a color from the drop down, then the piece that is missing is a free text box to put the length of material being ordered. I attached a photo of what I have now vs what I am looking for (in red).1661379116_6306a22cd69cc_2848E462-A74E-41661379113_6306a229db6f9_CFFB5019-D07D-4phoI attached a

  • Profile Image
    Lorenz
    Answered on August 24, 2022 at 09:45 PM

    Hello Jessica,

    Thank you for getting back to us. What you're trying to accomplish is actually possible using the show/hide condition and a normal short text field. However, it is currently not possible to place the text field just below the product itself or category, it will be placed below the product list element instead. Let me show you how:

    • Add a short text field element.
    • Create a show/hide condition
    • Set the condition to show the short text field if a particular product has been selected.

    1661391869_6306d3fd8f5af_6671.gif

    If this is not exactly what you're trying to accomplish, please let us know.