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

Duplicate form field value in separate field

Damian
Registered: Dec 14 2007
Posts: 13
Answered

Apologies, this probably has such a simple answer... but i've scoured the forum and cant seem to find what im looking for.
 
I have a multi page pdf form and what im after is the ability to reference and copy the values of several fields and copy these into a different set of fields on a separate page.
These values will not always need to be the same so it needs to be a deliberate decision ie button press and not an automatic calculation.
 
Any help would be appreciated

My Product Information:
Acrobat Pro 8.1.7, Macintosh
Damian
Registered: Dec 14 2007
Posts: 13
Accepted Answer
lol, through further trial and error i managed to answer my own question
here is simple script i used.

this.getField("box2").value = this.getField("box1").value;

Still getting used to scripting in acrobat

Thanks
pdfer
Registered: Dec 23 2010
Posts: 28
Damian,
How exactly are you using this script? I'm looking for something like this (I think). Let me explain. I have a 5 page PDF doc. I have fill in fields on page 2, but I also want that info to populate the fill fields on page 5. Would the script above work for my situation? Let me know. Thanks.

Jackson C.

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
pdfer,

All you need to do is use the same field names and the field values will be the same.
Damian
Registered: Dec 14 2007
Posts: 13
Hi Jackson
In your situation i think george's answer would be what you need...
In my case the values would not always be the same so i need to be able to change the field values or have the option to bring in the info from a previous page if nothing has changed.

beetreaux
Registered: Apr 5 2011
Posts: 1
George_Johnson wrote:
pdfer,All you need to do is use the same field names and the field values will be the same.
I know this works because I used to do it in prior Acrobat versions, however, it is not working in the current form I'm working on. I'm using Acrobat 9 Pro. I have actually copied the field I need to duplicate to another page, but the value I type on the 1st page does not appear on the 2nd page. Both fields are called "Patientname". What am I missing?


NEVER MIND: I found the answer here http://acrobatusers.com/forum/forms-livecycle-designer/duplicate-form-field
this forum is fantastic!
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Forms created using LiveCycle Designer are different than forms created in Acrobat, even though the completed form from either program can be filled in by Acrobat or Reader.

If the form is LiveCycle Designer, then you need to use the same name for the fields and set the 'Global' binding option for the form fields.

George Kaiser