How to have more than one checkbox checked if more than one condition that I setup in the form is met.

  • Profile Image
    Libertytax
    Asked on January 31, 2017 at 01:26 AM

    Hello. I set up my form so that for instance if "64. Are you an individual who is or was in a period of unemployment that is at least 27 consecutive weeks..." is equal to "Yes" then the "7" checkbox is selected under "Summary". The entire form is setup like this so that certain boxes are checked when the answer is Yes to certain questions.

    The problem is I can only have one box checked at a time. If I have 7 selected and then answer the question to make checkbox 6 active, 7 is then unselected. 

    I need to be able to have more than one box checked if more than one condition that I setup in the form is met. How can I accomplish this?

  • Profile Image
    olivia
    Answered on January 31, 2017 at 02:14 AM

    Hi,

    Unfortunately, it is not possible to clear selected checkboxes or select unselected checkboxes by using Enable/Require fields conditions. I need to make more investigation on your issue to find an alternative way.

    Basically, you can use more than one checkbox list and show/hide them according to user selections by conditions. 

    Please look at my demo form: https://form.jotform.com/70301606961955 

    You can clone my demo form to your side, too: How-to-Clone-an-Existing-Form-from-a-URL  

    I duplicated 'Select' checkbox and used only Show/Hide conditions to show or hide these Select checkboxes.  You can see the condition below:

    Finally, I changes the Clear Hidden Field Values in Preferences>Advanced as Clear on Being Hidden. This provides to clear selected checkboxes automatically when they are hided. 

    Please have a look at this guide to learn more about the conditions: Smart-Forms-Using-Conditional-Logic 

    You can apply these changes/method to your form. If you still need any supports, we are always ready to help you.

    We'll be awaiting for your reply.

    Thank you.

  • Profile Image
    olivia
    Answered on January 31, 2017 at 03:20 AM

    Hi,

    I'm sorry for the confusion. After I have made more investigation on your issue, I noticed that we can checked certain checkboxes with their values (option text).

    Please have a look at the following video:

    If your issue is that, you need to create Update/Calculate Fields conditions for Yes and No selections/cases like below.

    In my example, when the user selected No, c, b and 5 options were checked. Please note that you need to use Options value of checkbox items in the condition and if you change them in the future, you need to update your conditions.

     

    Another important point is comma. As you see in the below image I defined the values in the condition by separating values by comma.

     

    My second demo form: https://form.jotform.com/70300985658967 

    You can clone it to your side, too: How-to-Clone-an-Existing-Form-from-a-URL 

    If you need any other details, please feel free to let us know.

    Thank you.

  • Profile Image
    Libertytax
    Answered on January 31, 2017 at 11:38 AM

    Thank you for your answer. Let me clarify a bit because I think there is some confusion on what I need to happen. My form was already setup as you suggested in your second reply.

    STEP 1: For the "Summary" question, I used Calculation Values (under Surveying) to assign a value to each checkbox. Checkbox 1 corresponds with Calculation Value 1, Checkbox 2 corresponds with Calculation Value 2 and so on.

    STEP 2: As an example, I then used Update/Calculate Field to say IF "64. Are you an individual who is or was in a period of unemployment that is at least 27 consecutive weeks..." IS EQUAL TO "Yes" DO Calculate a Field's Value. I added the number 7 and then the output is the Summary.

    RESULT: When I choose Yes for #64 then the checkbox next to 7 under the Summary is automatically selected.

    I setup almost every question with an Update/Calculate condition. The problem is if I turn around and choose Yes for #60, it unchecks box 7 and then selected box 3. I need box 7 to remain checked in addition to any other boxes that were previously checked based on the answers previously selected.

  • Profile Image
    ashwin_d
    Answered on January 31, 2017 at 12:56 PM

    Hello Libertytax,

    Let me try and understand your requirement correctly.

    The condition you have added where you insert 7 in checkbox if the "64. Are you an individual who is or was in a period of unemployment that is at least 27 consecutive weeks..." IS EQUAL TO "Yes""

    Now you also select some other value (say  3)in same check box. Then some other condition is triggered or you select the same question "64. Are you an individual who is...."IS EQUAL TO "Yes""

    The second condition trigger resets your check box question and only 7 is selected. Please check the screenshot below:

     

    Do you mean to say that you want to retain the manually selected values as well?

    Unfortunately it is not possible to retain the previously selected value since insert condition will reset the field.

    Let me check and come back to you if I am able to find out any workaround to achieve your requirement.

    Thank you!

  • Profile Image
    Libertytax
    Answered on January 31, 2017 at 04:48 PM

    None of the values are checked manually. They are automatically checked by way of Update/Calculate Values if the answers to certain questions are yes. The Summary field is actually going to end up being hidden on the form so checking it manually won't even be an option when someone is filling out a form.

  • Profile Image
    NeilVicente
    Answered on January 31, 2017 at 05:34 PM

    @Libertytax

    From my understanding, this is what you want to happen:

    When condition A is satisfied, tick Check Box value 1
    When condition B is satisfied, tick Check Box value 2
    When condition C is satisfied, tick Check Box value 3

    and so on, where Check Box is a singular check box field, so that the boxes are ticked cumulatively.

    If this is exactly what you want, then I am afraid to say that this isn't doable. Checkboxes can accept only a single instance of value(s), meaning it can't accept a new value and keep the existing ones at the same time.

  • Profile Image
    Libertytax
    Answered on January 31, 2017 at 06:02 PM

    Thank you for your answer. I found a work around. Instead of have 1 question with 7 checkboxes, I created 7 questions with 1 checkbox each. This allows me to check each box I need without it effecting anything else checked previously.