Two dropdown menus, script to change export value based on selection?
Hello everyone,
I'm pretty new to JS/scripting in PDFs, so I would appreciate your help with this:
I have a PDF with two dropdown menus: "Package" and "Locations".
The package dropdown has 3 options, "S" "M" and "L" which are priced at 1999, 2499 and 2999.
The locations dropdown has 5 options, "none" and 1-4 additional locations.
My problem is the following: I want the export values of the additional locations to change, depending on what was selected in the package dropdown:
When "S" was chosen, 1 additional location is 499.
When "M" was chosen, 1 additional location is 699.
When "L" was chosen, 1 additional location is 899.
Is there a way I can achieve this? I tried to find anything and copying it into the calculation script, but I think that's totally wrong 😄 Any help would be appreciated, thank you!
