These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Creating a "Type Over" Text Field?

markojett
Registered: Dec 21 2009
Posts: 22
Answered

I'm trying to create a text field on a form. What I'm being asked to do is have a text field that has (in italics) examples of what the user should actually type in the field. When the user clicks or tabs into this field, the text in the box disappears. I've tried several things but I can't get this to work. Any ideas? Thanks as always...

My Product Information:
Acrobat Pro 8.1, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Here's a topic from the other day that discussed this: http://forums.adobe.com/thread/797669
markojett
Registered: Dec 21 2009
Posts: 22
Thank you George, but I can't seem to get this to work. I'm using Adobe Pro 8.1 and I'm not very experienced in coding. Do I need to enter all the below information into the custom validation script field?

// Custom Format script for text field

if (!event.value) event.value = "Write text here";

Thanks again for your help.
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Accepted Answer
No, as mentioned it is a custom Format script. If you've placed it as a Validate script, remove it, and then go to the Format tab and select a format type of Custom and you will see where to enter the code for the Format script.

Edit: corrected typo
markojett
Registered: Dec 21 2009
Posts: 22
George, you rock. That worked - Thanks so much.