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

Trying to Carry Forward Data From Another Page

Rolsskk
Registered: Feb 12 2008
Posts: 8
Answered

Hello,
I'm using Designer 7.0, and I've got next to no experience with this program. I've tried reading through a half a dozen websites and info PDFs on Designer, but none of them were able to help me out, so if you could help me, I would greatly appreciate it.

I was wondering how I would be able to retrieve the info from the data that's in a field on page one and have that appear on page 2?

Example- On page 1 for the field AveTotalMiles I have an amount of 550, and on page 2 I'd like to reference AveTotalMiles again, and get the total of 550 to appear in that space.

Thanks!

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Name both of the fields the same, then set the field's binding to "Global". You'll find this parameter on the "Binding" tab of the "Object" window, look in the "Windows" menu if the "Object" window is not visible.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Rolsskk
Registered: Feb 12 2008
Posts: 8
thomp wrote:
Name both of the fields the same, then set the field's binding to "Global". You'll find this parameter on the "Binding" tab of the "Object" window, look in the "Windows" menu if the "Object" window is not visible.
Wow thomp! Thanks, that did the trick, I greatly appreciate it!
Rolsskk
Registered: Feb 12 2008
Posts: 8
One other quick question regarding data being carried forward, I would like to carry forward a number from page one, and on the second page, I would like to input that number in a field, divide it by two, and then round that number up. I was wondering how would I put that into FormCalc to make it compile properly?

Thanks.
sconforms
Expert
Registered: Jul 10 2007
Posts: 92
Rolsskk,

Let's say you have a numeric field on the first page called "Quantity" and you want to show that quantity divided by two and rounded-up in a numeric field on the second page called "Half".

You would use the Script Editor to edit the "Half" field's Calculate script, set its language as FormCalc and enter the following statement:

CEIL(Quantity / 2)

Whenever the "Quantity" field changes in value, the "Half" field will update accordingly.

Stefan Cameron obtained his bachelor's degree with Honors in Computer Science at the University of Ottawa and is a Computer Scientist working on Adobe's LiveCycle server products, in particular on LiveCycle Designer ES for the past 5 years.