Copy link to clipboard
Copied
I have 2 sets of check boxes
3) check boxes for "location"
5) check boxes for "type" associated to in each location
1) drop down menue for 10 different "size" options.
I need to calculate a final price based on the variable of all 3 values
Copy link to clipboard
Copied
Maybe I shoe say....
If they select check box A1, A2 or A3
and select check box B1, B2, B3 etc
then the values selected in the drop down (C 1-10) list values change accordingly to a new rate
Copy link to clipboard
Copied
Hi.
Checkboxes and dropdowns can have an "Export value" (Field properties : Option tab), so in the Total field you have to make the "Sum" or the "Product" (Calculation tab) of the 2 group of checkboxes and of the dropdown.
Copy link to clipboard
Copied
Well almost, and thanks for the response
Each check box A1, A2 - B1, B2 etc, each have a different export value for instance
A1 would be yes / no
B1 would be 1500.00, B2 - 1250.00 would be etc OR yes/no
the drop down would need to reflect and adjusted rate for the size (package) choice based on the selection of all 3 values
Copy link to clipboard
Copied
You can use nested if-statements:
if (A1="Yes") {
if (B1=="1500") {
if (C1=="Large") {
event.value = 100;
} else if (C1=="Small") {
event.value = 75;
}
} else if (B1=="1250") {
// ...
}
} else if (A1=="No") {
// ...
}
Copy link to clipboard
Copied
Thank you! Its a long chain of script, but I'll manage if I'm careful
Find more inspiration, events, and resources on the new Adobe Community
Explore Now