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

Populate different text field with same value when checkbox is checked

victorchia
Registered: May 5 2009
Posts: 11
Answered

Hi,
Here's the situation:

I've created 2 text fields (A and B) with 2 different text field names and a checkbox.
Text field B is hidden.
When a value entered in text field A and checkbox is checked:
Text field B shows and populated with the same value as text field A.

I managed to work out show/hide text field B with checkbox.
But couldnt get text field B to have the same value entered in text field A.

Any suggestions???
Thanks

My Product Information:
Acrobat Pro 7.0.9, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2399
In the same function that shows field B add the following:
this.getField("B").value = this.getField("A").value

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

victorchia
Registered: May 5 2009
Posts: 11
it works perfectly. simply awesome. thanks