Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with adding grayed out text to a PDF text field (entered text should display black)

Status
Not open for further replies.

Colema2

Technical User
Feb 4, 2024
1
0
0
US
I am struggling with the code (below) in Acrobat, Text Field Properties/Format/Custom/Custom Format Script. The text displays gray as desired; however, the entered text also appears gray in the field. I want the end user's text to appear black. Does anyone have a solution to this issue?

if (!event.value) {
event.value = "Click here to enter Program Title"; // your instructional text will go here;
event.target.textColor = color.ltGray;
event.target.display = display.noPrint;
}

else {
event.target.textColor = color.black;
event.target.display = disply.visible;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top