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

Default in text field

NewsShmooze
Registered: Feb 13 2009
Posts: 24
Answered

I have entered "NAME OF APPLICANT" in a text field as the default where the user will input their information. When the user clicks on the text field, I would like "NAME OF APPLICANT" to disappear. Currently the user has to manually delete "NAME OF APPLICANT" before entering their information.

Can anyone help?

Thanks in advance.

My Product Information:
LiveCycle Designer, Windows
jonom
Registered: Jan 31 2008
Posts: 133
On the Enter event of the field you can put:
this.rawValue=null;
NewsShmooze
Registered: Feb 13 2009
Posts: 24
Thank you so much!!
jonom
Registered: Jan 31 2008
Posts: 133
Actually, this would be a little more complete:

if (this.rawValue=="NAME OF APPLICANT"){
this.rawValue=null;
}

This way if the filler clicks back in the field after already providing a response it won't erase their initial response.