Acrobat Prepare Form Fillable Text Box with Directions that Disappear When User Begins to Type
- August 17, 2023
- 1 reply
- 2666 views
Hello All,
I would like to learn how to make a fillable text box with directions that disappear when the user begins to type. I would like the font of the directions to be light gray/shaded and the user input data to be black and stay on the screen once it has been typed in. I already have something going but it's not working correctly. The shaded text disappears when you begin typing, but the typed text is shaded too and not black. Also, the typed info vanishes and all you can see is the original directions unless you hover the mouse over the box then the typed text reappears. This is what I have in my custom format, I got it from this site:
event.value = "Enter Date";
event.target.textColor = color.ltGray;
event.target.display = display.noPrint
I really need this explained to me in simpler terms as I am so confused and don't really understand Javascript too well yet. I get some of the basics, but I tried reading through a tutorial and I might as well have been trying to read Sanskrit while blindfolded.
I have attached a photo of my issues also.
