Skip to main content
Known Participant
January 9, 2019
Question

formatting text box depending on input from another text box

  • January 9, 2019
  • 28 replies
  • 2453 views

Hi

im creating a form in which i need to limit the input into a text box based on the value of another text box. for example if text box "wpds" has UB36 input into it, I then want text box "pass"  to only allow the input of "Root","Hot", "Fill" or "Cap".  But if text box "wpds" has UF49 input into it, i want text box "pass" to only allow the input of "Layer1" "Layer2" or "Layer3".  Any input into this will be greatly appreciated. thanks

This topic has been closed for replies.

28 replies

try67
Community Expert
Community Expert
January 9, 2019

You should use a drop-down field, then, and set its options based on the first of the first field (using a script).

Known Participant
January 9, 2019

would you have an idea of what that script might look like? or know of a thread that speaks off it?

Thom Parker
Community Expert
Community Expert
January 9, 2019

Here's an article on exactly this topic:

https://acrobatusers.com/tutorials/js_list_combo_livecycle

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often