I've created a form using Adobe Acrobat Pro. I would like the Date field (the first text field on the form) to be pre-filled with instructional text like "Enter date". On clicking, this should vanish and, furthermore, if the form is printed, the pre-filled text should not show.
I found a script on an acrobat site which I used in the Date field, but its not working. The script is as follows -
if (!event.value) {
event.value = "Instructional text goes here";
event.target.display = display.noPrint;
} else {
event.target.display = display.visible;
}
The in-built javascript debugger gives me the following error message:
InvalidSetError: Set not possible, invalid or unknown.
Event.value:2:Field Date:Mouse Up
Any help would be greatly appreciated, Thanks!