Copy link to clipboard
Copied
I am hitting a roadblock here. I am on Adobe Acrobat XI and here is the scenario: I have a drop down and a text box.
Drop down field has 3 selections (A, B, C).
If A is selected, text box = 15 by default, but has the ability to be changed in the text box.
If B or C is selected, text box = 0 or '' by default, but has the ability to be changed in the text box.
If I use an if/then with a .value I will be able to get the numbers to work, but not have the ability to change them and keep them there. If I enter another number in a different field the JavaScript will run and change the text box back to 0 or 15.
Any help would be greatly appreciated.
Thank you
Instead of using a calculation script for the text field, use the validation script of the drop-down. That way it will only be triggered when you change the value of the drop-down field, not when you change any field in the file (like the calculation script).
Copy link to clipboard
Copied
Instead of using a calculation script for the text field, use the validation script of the drop-down. That way it will only be triggered when you change the value of the drop-down field, not when you change any field in the file (like the calculation script).
Copy link to clipboard
Copied
Yes! Thank you so much for the timely response and the correct answer!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now