Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Drop down selection trigger change in text field

Explorer ,
Jun 13, 2016 Jun 13, 2016

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

TOPICS
Acrobat SDK and JavaScript , Windows
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 13, 2016 Jun 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).

Translate
Community Expert ,
Jun 13, 2016 Jun 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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 13, 2016 Jun 13, 2016
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines