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

Highlight text field on entry

Acro43bat
Registered: Nov 6 2007
Posts: 4

I have created a form in LiveCycle Designer 8 which has several text fields. I need to know what the Javascript or other function would be to highlight the field when the user tabs into that field. I know in Acrobat 8 Pro it is easy to do this, but I havent' figured it our in LiveCycle.

My Product Information:
LiveCycle Designer, Windows
Formfingers
Registered: Feb 7 2007
Posts: 90
Hi Acro43bat,

Copy and paste the below script to your text field, in your Script Editor>"Enter" function (set to Javascript language):var TextField = event.target;
var f = TextField.getField("form1[0].TextField[0]");
f.fillColor = color.yellow;

Test that in your PDF preview - when you click into the field, it should display yellow (or change to whatever color you want).