-
gamesdaypartiesAsked 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_CReplied 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:
A condition to prepopulate would be:
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!
-
gamesdaypartiesReplied 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:) -
jherwinReplied 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:
After that, add a condition like this to your form:
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.
-
gamesdaypartiesReplied 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
-
MikeReplied 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:
and so on.