Show/Hide not working when re-editing my form

  • BevanSheppard
    Asked on July 23, 2024 at 10:25 PM

    Hi Team,

    Loving the software and learning new things every day.

    I currently have a small issue that I can't solve.

    I've created a form for our team to use which shows/hides questions depending on the brand of vehicle they select. This is working perfectly when first used, but if they reedit the form from the tables screen they are shown questions that were originally hidden.

    I can't figure out why this isn't working.

    Thanks,

    Bevan



  • Ivy JotForm Support
    Replied on July 24, 2024 at 4:39 AM

    Hi Bevan,

    Thanks for using Jotform Support. I understand your question, but I need time to solve it. Thanks for your patience and understanding, we appreciate it.

    In the meantime, if you have any other question, reach us for help.

  • Ivy JotForm Support
    Replied on July 24, 2024 at 5:13 AM

    Hi Bevan,

    I cloned your form, made a submission to it, and then I edited the submission through Tables. When you do that, as you've also mentioned, you'll be able to edit any part of the form regardless of the conditions you've created. But when you click on Next on each step, if a condition exists on the current step, it will be enabled and will hide or show fields as it was set. This is an expected behavior to let form owners easily edit any part of a form. If that's the case, you can click on Show All Steps to go to any step you want without having to follow each step of the Form. Let me show you how:

    1. In Tables, hover your mouse over a submission and click on the three dots icon at the left.

    2. Click on Edit Entry.

    3. Hover your mouse over the step number at the bottom of the page and click on See All. That's it.

    Show/Hide not working when re editing my form Image 1 Screenshot 20

    If that's not what you're looking for, can you give us more details about what you're trying to achieve, so that we can help you better?

    Reach out again if there’s anything else we can help you with.

  • BevanSheppard
    Replied on July 24, 2024 at 4:44 PM

    Thank you for the reponse.

    In our use case, the form is used for technicians to enter warranty information.

    The logic is based around question 3, Vehicle Make.

    Depending on the brand, different questions are shown. This is because each brand of vehicle has different information required for warranty claims.

    Show/Hide not working when re editing my form Image 1 Screenshot 60

    When adding a new submission, the logic works perfectly - it successfully hides/shows the questions not required.

    As an example, if the user selects Audi/Skoda, the two vehicle specific questions are shown.

    Show/Hide not working when re editing my form Image 2 Screenshot 71

    The user continues to the end and submits the form.

    Later, when the repair is completed they reedit the form from the tables screen to complete the form.

    This time however, the form remembers that they had previously selected the brand (Audi/Skoda).

    Show/Hide not working when re editing my form Image 3 Screenshot 82

    But, this time some of the questions that were previously hidden based on this logic will appear to the user.

    As you replied, you can "show all" via the bottom button and the questions that shouldnt show via the logic are marked.

    Show/Hide not working when re editing my form Image 4 Screenshot 93

    The part that doesn't make sense is that when re-editing the form, some of the questions that shouldn't show via the logic remain hidden (which is what I'm aiming for). In my case these three questions remain hidden but others will show. It would seem the logic should apply to all questions....

    Show/Hide not working when re editing my form Image 5 Screenshot 104

    Appreciate the assistance.

    Thanks,

    Bevan

  • BevanSheppard
    Replied on July 24, 2024 at 4:52 PM

    Adding to this:

    I've noticed that it's only these 2 questions that consistantly show when they should be hidden, the others always remain hidden as required.

    I can't see anything in the setup that makes these 2 show when the others don't.

    I've tried moving the order around etc but nothing seems to change the function.


    Show/Hide not working when re editing my form Image 1 Screenshot 30

    Show/Hide not working when re editing my form Image 2 Screenshot 41

  • Rene JotForm Support
    Replied on July 24, 2024 at 6:05 PM

    Hi Bevan,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    In the meantime, let us know if you have any other questions.

  • Rene JotForm Support
    Replied on July 24, 2024 at 6:44 PM

    Hi Bevan,

    I cloned your form to test it, and I easily replicated the issue. When I went to edit a submission, the 2 hidden fields you indicated in your most recent reply showed up. Check out the screencast below:

    Show/Hide not working when re editing my form Image 1 Screenshot 80

    I checked the form again to find out what's happening, and found the reason for this. I found that you have conditions in your form that is connected to the vehicle selection, wherein if Haval/GWM or MG is selected, 'Add a clear photo of removed faulty part' will be shown. Check out the screenshot below:

    Show/Hide not working when re editing my form Image 2 Screenshot 91

    And when Volkswagen/Cupra is selected, 'Parts Manufacturer Code (if required)' will also be shown. Here's a screenshot:

    Show/Hide not working when re editing my form Image 3 Screenshot 102

    That means, those two fields will definitely show when editing a submission, because they are conditionally set to appear as part of a selection from the Single Choice field 'Vehicle Make'. So even if they are set to be hidden as a field, they will still show because of conditions that force them to show.

    To achieve your goal, you need to hide those 2 hidden fields in the conditions where they mistakenly show up. Let me show you an example:

    1. From the Conditions window, search for the one that has Volkswagen/Cupra in it.
    2. Hover your mouse over the condition and click on the Pencil icon.
    3. Click the Plus symbol next to the DO/FIELD section.
    4. Add the condition to hide 'Add a clear photo of removed faulty part' and click on Save. Show/Hide not working when re editing my form Image 4 Screenshot 113

    Here's a result when editing a submission with Volkswagen/Cupra as the selected vehicle:

    Show/Hide not working when re editing my form Image 5 Screenshot 124

    And here's a sample when Audi/Skoda is selected:

    Show/Hide not working when re editing my form Image 6 Screenshot 135

    Here's the condition associated with Audi/Skoda:

    Show/Hide not working when re editing my form Image 7 Screenshot 146

    You can modify the other options you have to Show/Hide Fields whenever needed. Just make sure to partner up a condition that needs to 'show' hidden fields to 'conditionally hide' them for other selections.

    Check out this cloned form with the updated conditions so you can look into it. Note that the updated conditions there are only based on the examples you provided from your replies, and may still not be in full effect for others that need updating. Feel free to clone it if needed.

    Let us know if you have any other questions.

  • BevanSheppard
    Replied on July 24, 2024 at 7:08 PM

    Thank you so much. This was driving me crazy :-)

    I assumed that as the original state of the question was "hidden" then it would stay hidden unless specified to "show" in the logic.

    The logic needs to specify which forms are hidden and which are shown based on the criteria.

    Appreciate your assistance.

    You guys are awesome BTW.

    Kindest regards,

    Bevan

Your Answer