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

copy javascript to other text boxes

wislndixie
Registered: Oct 3 2006
Posts: 125

I've got a form with a javascript that changes the fill color when each text box receives focus. Is there an easy way to copy this script from my original text box to all other text boxes so they use the same script?
thanks
Mike

My Product Information:
Acrobat Pro 7.0.9, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
One can use the field object's "setAction( cAciton, cScript); " to set the "OnFocus" and "OnBlur" actions. By using an array of field names and a control loop, one could update a number of fields through the JavaScript console.

George Kaiser