Answered
Hello! This may be really easy, but I just can't seem to figure out how to do this. I'm using Acrobat 9 pro.
I have a text field and the default value is "First Name". Right now a users can click on the field and manually delete the default value and then enter his/her name.
I'm sure there's a way to automatically clear the default value when the text field is clicked.
Also, I only want the field to clear, if the default value is there. So, if the user entered his name and later on clicked that same field, it shouldn't clear his/her entry.
finally, if the user deleted his/her entry, the default value should re-appear.
I hope there's a Javascript that can do all of this.
If anyone could help me, I would really appreciate it!
Craig
Field.Reference::enter - (JavaScript, client)
if (this.rawValue == "Default Text.")
{
this.rawValue = null;
}Field.Reference::exit - (JavaScript, client)
if (this.rawValue == null)
{
this.rawValue = "Default Text..";
}