Skip to main content
Armadillo77
Known Participant
Jul 19, 2017 8:10 PM UTC
Answered

Placeholder Text in PDF Form

I'm looking to create a PDF form where there is grayed placeholder text (i.e. "Name") that disappears when the user inserts their cursor, and then when they type, black text appears and remains.

I've seen an explanation of how I can using coding in the Properties Menu/Format/Custom, but I can't seem to make it do the gray to black thing.

Any help or link to information would be greatly appreciated.

try67
try67Correct answer
Community Expert
Jul 19, 2017 8:53 PM UTC

8 replies

Participant
Apr 14, 2019 10:53 PM UTC

I wish there was an answer here that worked for Acrobat Pro DC

Translate
try67
Community Expert
Community Expert
Apr 14, 2019 11:04 PM UTC

The answer above should...

Translate
Participant
Apr 14, 2019 11:09 PM UTC

It doesn't but here's what does work for me;

Add one more item selection of a blank space

On the format tab, enter the following Custom Script:

if(event.value==" ")

{

event.value="Please make your selection";

}

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Jul 19, 2017 8:53 PM UTC
Armadillo77
Known Participant
Jul 19, 2017 11:50 PM UTC

When setting up the "On Focus/On Blur", what do I set the "Select Action"as?

Translate
try67
Community Expert
Community Expert
Jul 20, 2017 8:08 AM UTC

Run JavaScript...

Translate