Skip to main content
Known Participant
August 17, 2023
Question

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.

This topic has been closed for replies.

1 reply

johnsboxAuthor
Known Participant
August 17, 2023

I have read through the entire thing several times.  As I said, I really didn't understand what they were talking about because I am not versed in html script and dialogue.  I tried implementing Thom's suggestions but he doesn't explain what each lines means and I can't discern whether or not "If" at the beginning of the line is part of the html or he is just beginning his statement sentence, nor do I grasp if all the { } \ / he uses all over the place apply to the formula.  Furthermore, nothing they discuss seems to relate to why the visible instructional text disappears when entering user text but then reverts back to the instructional text after you tab out of the box.  That's what I don't want it to do, is revert back to the instructional text.  I want Instructional Text to be displayed but not print, to disappear when you click on the box or tab into it and for the user entered text to remain and be visible AND printable after tabbing or clicking out of the box.  If you can find that answer in your suggested reading and point it out to me, I would be greatly appreciative.  If not, if someone could answer my query directly, they will have my sincere gratitude. 

Bernd Alheit
Community Expert
Community Expert
August 17, 2023

"As I said, I really didn't understand what they were talking about because I am not versed in html script and dialogue. "

 

Info: Acrobat forms doesn't use HTML!