Skip to main content
FormNewbie
Participating Frequently
June 13, 2016
Answered

Drop down selection trigger change in text field

  • June 13, 2016
  • 1 reply
  • 2125 views

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

This topic has been closed for replies.
Correct answer try67

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).

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 13, 2016

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).

FormNewbie
Participating Frequently
June 13, 2016

Yes! Thank you so much for the timely response and the correct answer!