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

Acrobat Form - how to make form field show information so people know what goes in the field

Participant ,
Oct 31, 2019 Oct 31, 2019

I am using Acrobat Pro DC 2019. 

 

Usually, in a form, the field is next to some text that says what goes in the field, like this:

Name: [                                    ]

 

I am working on a Form where the field does not always line up with that information. If you look at the chart below, I need to communicaate what the user is supposed to type into the field.

 

Screen Shot 2019-10-31 at 3.15.26 PM.png

 

I need the chart fields to say "Event Time" and "Event Date." Having the Tooltip seems like a very slow way to do it. But also putting Default Value text in the box is cumbersome for the user since they have to erase it. 

 

How do I have some "ghost text" in there saying "Event Time" but it disappears when they click to fill it? And if printed, the ghost text shouldn't print (preferably) but anything typed into the boxes does?

TOPICS
PDF forms
530
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
Community Expert ,
Oct 31, 2019 Oct 31, 2019

Add this code to a custom format script (assuming this is a regular PDF form)

 

if(event.value == "") event.value = "Ghost Value";

 

Of course you'll need to replace "Ghost Value" with your text. 

I also usually change the text color so the ghost text is grey, and the main text black.

 

 

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

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
Community Expert ,
Oct 31, 2019 Oct 31, 2019
LATEST
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