Hello, all. I'm a noob hoping to get a little help creating a form.
My idea is to have instruction text in a form field that tells the user what sort of information to include, but then have that text disappear when the user goes to fill out the form (either on click, or typing the first character, or whatever). I'm pretty sure this can be done with javascript, but as a noob, I haven't a clue how to implement such a solution. Any clues/help would be much appreciated.
Thanks in advance,
/TW
Here's what I have used in the past:
var message = 'Please enter your name here:'
if (event.value == '') {
event.target.display = display.noPrint
event.value = message
} else {
event.target.display = display.visible
}
Add this to the 'Custom Format Script' for the field you want to display, and change the message to fit your needs.
Yes, but you cannot reset the font when the user needs to edit the field - the font will remain the same as it was last formatted until the user exits the field. (i.e. if the text was last formatted to be red or bold or italic, it will remain that way while the user edits the text)
See this thread: http://forums.adobe.com/thread/1031780
North America
Europe, Middle East and Africa
Asia Pacific