Is there a way to pass the calculated value of a check box to a dropdown?

  • gamesdayparties
    Asked on June 5, 2019 at 2:03 PM

    Is there a way to pass the calculated value of a check box to a dropdown value (1,2,3,4,etc) further down the form? Such as checkbox1 is $20/person and further down a dropdown asks how many guests are coming so it multiplies checkbox1 to dropdown value to determine cost? Thanks.

  • Nik_C
    Replied on June 5, 2019 at 3:05 PM

    Yes, it is possible to do that, depending on your checkbox and dropdown values, but it would be something like below.

    I have here checkbox with options and Dropdown with options 1,2,3,4:

    1559761238Screen Shot 2019 06 05 at 8 Screenshot 10

     A condition to prepopulate would be:

    1559761425Screen Shot 2019 06 05 at 8 Screenshot 21

    So when the checkbox is selected and equal to Option1, number 1 will be inserted in the drop-down.

    Please check my test form: https://form.jotform.com/91556092395970

    Hope it helps.

    Thank you!


  • gamesdayparties
    Replied on June 6, 2019 at 6:02 PM

    Actually, I didn't realize to just use a multiplication option of checkbox1 to the number of attendees...   So new question, can the checkbox1 NAME be use where the calculated values are tallied up?   So checkbox1 is $20/person and 2 people are selected in dropdown for guests, so the displayed cost shows $40 due but can that display box question be something like (Your total for {checkbox1 name} comes to:)


    As of right now, it's only displaying the calculated value of the checkbox1 so it reads
    (Your total for 20 comes to:)

  • jherwin
    Replied on June 6, 2019 at 7:22 PM

    You can duplicate the field and then assigned the labels to calculation value, see my screenshot below for reference:
    1559863122duplicate Screenshot 10
    1559863137duplicatecalc Screenshot 21

    After that, add a condition like this to your form:
    1559863292condition Screenshot 32
    Then you can use the hidden field to show the labels of what the user chose.

    Please check my demo form here: https://form.jotform.com/91567781621969.

  • gamesdayparties
    Replied on June 7, 2019 at 5:10 PM

    Awesome, while the checkbox option worked...  I changed it all around to single choice options and now the same method isn't working.  Can you see what I might be doing wrong here?  Thanks

  • Mike
    Replied on June 7, 2019 at 7:30 PM

    Unfortunately, the same method will not work for the single choice fields with enabled calculation values.

    To make it work you will need to add a separate condition for each item, like this:

    Is there a way to pass the calculated value of a check box to a dropdown? Image 1 Screenshot 30

    Is there a way to pass the calculated value of a check box to a dropdown? Image 2 Screenshot 41

    and so on.