Retain previous selection on a field when changing answer from another field

  • WSIguy
    Asked on December 3, 2019 at 2:45 PM

    Hey,
    Back with another problem.

    Each item in the image checkbox is tied to a select field (where they can select 1-5).
    We use conditionals to set the quantity to 1 when the the image is selected. So, we show the select field AND have it pre-selected as 1.

    Everything is fine, EXCEPT, if we check a single image, and then select a quantity other than 1, AND THEN go and check another image, then the quantity of the first selection reverts back to 1.

    The user experience I hope is:
    Select a checkbox/image reveals the select field below, and that is preselected to 1.
    The user can select another quantity (2, 3 etc), if they want.
    Then, they can select another image and do the same process deciding the quantity.
    Checking other images/checkboxes should NOT affect previously selected fields.

    As it stands now, the user needs to first check all desired images, and then make any desired quantity changes. Checking or unchecking images makes everything revert to 1, which would annoy the user.

    I hope this is possible.
    You can see it in action at the form link I provided in the original ticket.

    Best regards,

    Bruce

  • Mike_G JotForm Support
    Replied on December 3, 2019 at 2:51 PM

    To fix the issue you are having, go to the Condition Settings of your form and search for the word "update". Delete all the condition that inserts 1 to the dropdown fields in your form. There should be 4 conditions in total.

    1575402470zt14 43 28 Screenshot 10

    After that, go to the properties of each dropdown field and set the default value of the fields to 1.

    1575402676zt14 50 19 Screenshot 21

    Feel free to let us know if you need any further assistance.

  • WSIguy
    Replied on December 3, 2019 at 7:39 PM

    You. Are. Awesome!
    Thanks!