Skip to main content
Known Participant
February 9, 2018
Question

how to make a value hidden when dropdown shows another value

  • February 9, 2018
  • 1 reply
  • 1433 views

editing script for a pdf form and ive never done this before. so i got values that were hidden to be visible like my manager wanted, but i need these values to be hidden when only one dropdown item is selected.

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
February 9, 2018

You'll need to explain your specific requirement in more detail. We don't know what your manager wanted, and we don't know what you mean by "when only one dropdown item is selected".

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
ncorderAuthor
Known Participant
February 9, 2018

So there is a drop down field on the form which values populate depending on what is selected.

first he needed certain values that were hidden to be always visible (not just when a specific dropdown was picked).

So I changed code to say visible which was simple enough, but I need these same values to become hidden only when one choice  made because other fields are in the same place.

Thom Parker
Community Expert
Community Expert
February 9, 2018

What is the code you are using now? And where is this code placed?  It is critical that you answer the second question, in which event is the existing code placed?

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