Skip to main content
Armadillo77
Known Participant
July 19, 2017
Answered

Placeholder Text in PDF Form

  • July 19, 2017
  • 2 replies
  • 44973 views

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.

2 replies

Participant
April 14, 2019

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

try67
Community Expert
Community Expert
April 14, 2019

The answer above should...

Participant
April 14, 2019

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";

}

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
July 19, 2017
Armadillo77
Known Participant
July 19, 2017

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

try67
Community Expert
Community Expert
July 20, 2017

Run JavaScript...