Auto-populate Multiple Choice based on Other Field values

  • Kay_Jonathan
    Asked on May 10, 2025 at 4:43 AM

    I have a form with several sections. Users don't have to fill them all but I want a multiple choice field at the end to reflect which sections they've filled.

    Form has sections A thru D and the Multiple choice field has options for the sections filled above.

    So they might fill in section A and section C and I want the boxes for Section A and Section C to be autofilled.

    I tried to set this up with conditional logic as follows:

    Conditon 1 - If Section A is filled, calculate field on multiple choice and enter Section A

    Condition 2 - If Section C is filled, calculate field on multiple choice and enter Section C

    unfortunately it seems that this will only allow me to do one of these conditions. In other words only one box will be ticked even if both conditions are met.

    Am I doing this wrong?

  • Mahmoud JotForm Support
    Replied on May 10, 2025 at 6:11 AM

    Hi Jonathan,

    Thanks for reaching out to Jotform Support. Are you referring to that specific form? Could you share more details about what you’re trying to do? I wasn’t able to find any conditions related to the multiple-choice question to calculate another field. I found show/hide fields conditions based on the multiple-choice answers. If you’re referring to a different form, share the form URL so we can take a closer look. Also, sharing a video of the issue would help us better understand what you’re trying to achieve. You can upload it to Google Drive or record it using Loom.

    Once we hear back from you, we'll be able to help you with this.

  • Kay_Jonathan
    Replied on May 10, 2025 at 12:06 PM

    It's this one....


    https://form.jotform.com/250823405136551


    You'll notice that if one of the conditions is met it works but if more than one is met, they don't select correctly


  • Adrian Besilla JotForm Support
    Replied on May 10, 2025 at 12:16 PM

    Hi Jonathan,

    It seems that the issue you're running into is because each condition is overwriting the value of the multiple choice field, rather than adding to it. In Jotform, when using Calculate a field's value conditions on a Multiple Choice field, each condition replaces the previous value unless you deliberately set it to append multiple values.

    Can you share with us a screen recording of the issue so we can understand better what's happening and we'll try to replicate it on our end? You can share the video recording on any public sharing platform like Google Drive or Dropbox, or you can simply use Loom to record the video and share the video link with us.

    Once we hear back from you, we'll be able to move forward with this.

  • Kay_Jonathan
    Replied on May 10, 2025 at 12:44 PM

    Yes, exactly as you describe. I want to set it up to append values not overwrite the previous

    Please tell me how to set it up like that


    https://www.loom.com/share/e886bcfb5d4e4a6db1b7b6b722fc6a68?sid=f2c9460a-1868-44d8-b261-b4e4a44bee25

  • John JotForm Support
    Replied on May 10, 2025 at 1:19 PM

    Hi Jonathan,

    Thanks for sharing the video. That helps us understand what's happening. Let me look into it and get back to you with a solution.

    Thanks for your patience, we appreciate it.

  • John JotForm Support
    Replied on May 10, 2025 at 2:16 PM

    Hi Jonathan,

    I understand you'd like to automatically check an option in the Coding field based on the values entered in other fields. This is possible using the conditions you already have in place. However, it will not work as expected if both conditions are met, as the last condition that gets triggered will override the previous one. That's why you're seeing only one option checked, even when both conditions are true.

    To get around this limitation, you’ll need to add another field that combines the values from both conditions. It's easy to set up. Let me show you how:

    1. In Form Builder, scroll down to the bottom of the form, then click on Add Element on the left side of the page.
    2. Under the Basic tab, click on or drag and drop the Short Text field to add it onto your form, placing it just above the Coding field.
    3. Rename its label to Age by double-clicking the current label and typing in the new one.
    4. Repeat the same steps, but this time, use Weight as the label. Auto populate Multiple Choice based on Other Field values Image 1 Screenshot 90
    5. Next, click on Add Element again, then under the Widgets tab, drag and drop the Form Calculation widget to the form.
    6. In the widget's properties on the right side of the page, click on Add Field, then select the Age and Weight fields you just added one after the other. Auto populate Multiple Choice based on Other Field values Image 2 Screenshot 101
    7. In the Calculation box, click on right side of each field to convert their values into text.
    8. Click on Save at the bottom, then rename the widget and you're done. Auto populate Multiple Choice based on Other Field values Image 3 Screenshot 112

    Now that the fields and the widget are in place, you can start modifying the conditions related to Age and Weight. Let me walk you through it:

    1. While in Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. Click on Conditions on the left of the page, then look for the conditions related to Age and Weight(kg) fields.
    3. Hover your mouse over the condition and click on the Pencil icon to edit it.
    4. Set the condition for the Age field as you see below, but instead of adding the Summary to the Coding field, add it to the new Age field you just added to the form. (Notice the comma that's added at the end of the value.) Auto populate Multiple Choice based on Other Field values Image 4 Screenshot 123
    5. Set the condition for the Weight(kg) field as you see below, and similar to the Age field, add the Summary to the new Weight field you just added to the form. (Notice also the comma that's added at the end of the value.) Auto populate Multiple Choice based on Other Field values Image 5 Screenshot 134
    6. Finally, while in the Conditions page, click on Add Condition.
    7. Choose Update/Calculate Field to create a condition that passes the value from the Form Calculation widget to the Coding field. Auto populate Multiple Choice based on Other Field values Image 6 Screenshot 145
    8. Set the condition as you see below.Auto populate Multiple Choice based on Other Field values Image 7 Screenshot 156

    And that's it. Check out the screencast below to see how it works:

    Auto populate Multiple Choice based on Other Field values Image 8 Screenshot 167 Give it a try and let us know how it goes.

Your Answer