Clear all options but one on a Multiple Choice Box

  • dj.rip
    Asked on September 2, 2019 at 1:33 PM

    Hello

    Loving your form maker. Better than google forms in most ways, thanks.

    Example:

    I have a multiple choice option box that has 5 options. They can also add "Other"

    OP1

    OP2

    OP3

    OP4

    OP5

    Other

     

    You can select any or all of the first 4 (and other) but if option 5 is selected, then all other options become invalid.

    Can I make it so all other options are cleared if they select option 5?

    In the attached form, it's on page 20.

    Thanks

    Richard

  • Vanessa_T
    Replied on September 2, 2019 at 2:42 PM

    There is no direct way to have a "clear all" option in multiple choice field. However, as a workaround, you can still achieve the same goal by using a Form Calculation widget and conditions.

    1. Add a Form Calculation widget to your form that will have the same value as your Multiple Choice field, let's name it as Selected Values. You can then hide this field.

     1567448701A Screenshot 10

    2. Then create a condition where, if Selected Values contains option 5, then update the multiple choice field so that it will only have option 5.

    3. We must also have a rule, that if Selected Values does not contain option 5, then retain the values that are in the multiple choice field.

    1567449004Screen Shot 2019 09 03 at 2 Screenshot 21

    1567449715A Screenshot 32

  • dj.rip
    Replied on September 3, 2019 at 10:13 AM

    Hello

    This is exactly what I asked and you have answered my question. Thank you.

    The one issue that I had with your answer was trying to work out exactly how you created those conditions as I had not seen "INSERT" as an option before. I did work it out in the end. Thanks again

  • dj.rip
    Replied on September 3, 2019 at 1:58 PM

    Hello Vanessa

    Although your forms have no way to "Clear All", there is a way to essentially "Clear All". 

    You make a MAIN Multiple Choice list and an exact DUPLICATE of your Multiple Choice list. Have NO selections by default in your DUPLICATE.

    If the condition is met where you want to "Clear All", use the Conditions to Copy Values from DUPLICATE Multiple Choice list to your MAIN Multiple Choice list. You can of course hide the duplicate.

    I have attached the form I made to show you how, Feel free to make this public.

    https://form.jotform.co/92454852317865 i will leave it up for a week.

  • Mike
    Replied on September 3, 2019 at 2:51 PM

    Looks good. Thank you for sharing your workaround with us.

    We have marked this support thread as public. It can be changed back to private per your request.