Skip to main content
Participant
April 3, 2019
Question

Is there a way to create a dropdown list box that displays instructional text which disappears on mouse-click?

  • April 3, 2019
  • 3 replies
  • 2319 views

Is there a way to create a dropdown list box that displays instructional text which disappears on mouse-click?

This topic has been closed for replies.

3 replies

Known Participant
April 8, 2019

Do you want the user to make a selection from a dropdown list box and based on the selection display some text then when the user clicks on an area in the text the text disappears? If so how about showing the text as an image in a button and when the user clicks on the button the button's visibility is set to hidden?

If you are interested in an example then you should check out the following PDF form that I created "Buttons with a Dropdown Field to Show Instructional Texts".

Thom Parker
Community Expert
Community Expert
April 4, 2019

Yes, besides the tooltip you can use a format script to display text, but this is tricky.

First there needs to be a blank default entry.  A single space will do.

Next, add this to the custom format script

if(event.value == " ") event.value = "My Message";

I usually change the color as well so the help text is gray.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
stm78205Author
Participant
April 4, 2019

I followed those instructions, but they don't seem to work on a dropdown list. Any other suggestions?

Thom Parker
Community Expert
Community Expert
April 4, 2019

They do work on a dropdown list. It's just a matter of getting all the bits correct. The really important bit is the test for the default value. It must match the default value verbatim.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Adobe Employee
April 4, 2019

You can try using "tooltip' to add instructional information.

You will be able to find it in General tab for form field properties

For details refer, PDF form field properties, Adobe Acrobat

stm78205Author
Participant
April 4, 2019

I'm aware of the tooltip, but that is not what I'm looking for. Thanks,