These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Text fields

elizabethmc
Registered: Jun 19 2007
Posts: 10

I am trying to create a text field with the caption actually inside the text box. I would also like the caption to go away when the user starts to type. Is this possible in Designer?

Thanks,
Elizabeth

Dripto
Registered: Jun 20 2007
Posts: 47
I think if you used a mouse click instance to use some form calc code to clear the text box then you could in essence clear the caption so the user could type in some text.
elizabethmc
Registered: Jun 19 2007
Posts: 10
That sounds great! How do I do that? I'm VERY new to this program.
Dripto
Registered: Jun 20 2007
Posts: 47
Instead of typing out a text book I can send you screenshots. Do you have an e-mail address that accepts HTML?
elizabethmc
Registered: Jun 19 2007
Posts: 10
Yes, my email address accepts HTML.
Dripto
Registered: Jun 20 2007
Posts: 47
Sorry, I should have checked this earlier. But I cannot send you the screenshots directly from this forum (Only text is allowed, no attachments). Do you know how to enter scripts for a particular event?
elizabethmc
Registered: Jun 19 2007
Posts: 10
No, I know nothing about entering scripts, but I'm sure I can find someone in my office that knows about scripts.
Dripto
Registered: Jun 20 2007
Posts: 47
In that case click on the text box in question (IMP: throughout the procedure do not click on any other fields) and from the events with scripts menu dropdown, selec the event 'click' and type in the following:

this.rawValue = ""

What this will do is as soon as the user clicks into the field, the caption you entered will be removed. You might have to play around with it as Designer is finicky and I have not tested it out myself but it should work.
elizabethmc
Registered: Jun 19 2007
Posts: 10
Thanks for all your help. I will try that!