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

FormCalc field doesn't seem to carry over from previous page

amybruno
Registered: Aug 13 2010
Posts: 2

I converted a word doc into pdf and now trying to create a form with it. I am new to LiveCycle Designer. Using version 8.
There are two 'rating' sections to the form. Then there is a subtotal for each section. Both of the subtotals function fine. But my Total formcalc field doesn't recognize the subtotal1 from page 1. I keep reading that it doesn't matter how many pages or etc, so not sure what I'm doing wrong. Any assistance/advice is greatly appreciated.

subtotal1 = sum(DD1,DD2,DD3,DD4,DD5)
subtotal2 = sum(DD6)
Total = sum(subtotal1 + subtotal2)

I get the following error: Script failed (language is formcalc; context is xfa[0].form[0].topmostSubform[0].Page2[0].Total[0])
script=sum(subtotal1 + subtotal2)
Error: accessor 'subtotal1' is unknown.

I've tried total - sum(subtotal1) and it doesn't recognize it; but it recognized sum(subtotal2)
I've also tried sum("subtotal1,subtotal2") from advice from a previous post, the error goes away but the Total field remains '0'.

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You will need to add the full accessor name to the field on the other page. This is covered in the 'Scripting Reference' included under LiveCycle Designer's menu 'Help' option.

George Kaiser

Thelisha
Registered: Dec 26 2007
Posts: 10
I had this same problem and a user explained to me just yesterday that you have to add a page reference in order for livecycle to reference the other page. I was just trying to pull a calculation from the 1st page of my form that referred to a field named Total Military Income. This is what was explained to me in another Adobe forum:


When working with multiple pages, the page identifier must be added before the field name. For example, "Page2.TotalMilIncome"



Hope this helps.
amybruno
Registered: Aug 13 2010
Posts: 2
That did the trick, thanks so much for the assistance!