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

Autopopulate one field with the value of another field?

mattv
Registered: Dec 16 2009
Posts: 6
Answered

So here is what im trying to do. I am using Adobe Acrobat 8 ProfessionalI.

I have a multipage form and the first page works as the input fields and then copies of those fields will populate throughout the other pages.

The two text fields im tryin to manipulate are called:

Borrower
BorrowerU

I am wanting the value that is inputted into "Borrower" to autopopulate in the "UBorrower" field. I also want the text that populates in "UBorrower" to be all caps.

I am having issues with the scripts. Im not sure if im putting them in the wrong place or if it is just bad code. This is what i put in the actions tab under the Text field properties of the "Borrower" Text field:

var BorrowerU=this.getField("Borrower").value.toUpperCase();

I set the trigger to onBlur and the Action is Run a Java Script (then pasted the script in the Java editor box).

Any suggestions? Thanks in advance!!

My Product Information:
Acrobat Pro 8.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
In the Calculation tab, under Custom calculation script, enter this:

event.value = this.getField("Borrower").value.toUpperCase();

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

mattv
Registered: Dec 16 2009
Posts: 6
try67 wrote:
In the Calculation tab, under Custom calculation script, enter this:event.value = this.getField("Borrower").value.toUpperCase();
I entered that script in the "BorrowerU" Text Field.

It got me halfway there. It did send the value of "Borrower" to "BorrowerU" which is exactly what i need but it made both fields Capitalized. I only need the "BorrowerU" Field Capitalized and the input field ("Borrower") as it was actually inputted by the user (lower and uppercase).

Thank you for the quick response by the way!! Im almost there..
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Make sure you remove the other scripts you created, and also check that the fields actually have unique names.

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

mattv
Registered: Dec 16 2009
Posts: 6
Awesome!! I check both boxes for other old script and there was none and still didnt work so i just deleted both fields and created new ones and put in the script and it worked like a charm. Thanks so much!!!!