How to create disappearing instruction text in fields


hello, all.  i'm noob hoping little creating form.

 

my idea have instruction text in form field tells user sort of information include, have text disappear when user goes fill out form (either on click, or typing first character, or whatever).  i'm pretty sure can done javascript, noob, haven't clue how implement such solution.  clues/help appreciated.

 

thanks in advance,

 

/tw

here's have used in past:

 

var message = 'please enter name here:'

if (event.value == '') {

    event.target.display = display.noprint

    event.value = message

} else {

    event.target.display = display.visible

}

 

add 'custom format script' field want display, , change message fit needs.



More discussions in PDF Forms


adobe

Comments