User created a form in LiveCycle Designer 8.1 and when trying to sum up a few cells using formcalc gets the following message "Script failed (language is formcalc; context is xfa[0].form1[0].subform[0].Table3[0].Row4[0].ActTotal[0])
script=Sum(ActSalary,ActEre,ActOther) Error accessor 'ActSalary' is unknown
What is the issue and how can we possibly resolve it?
The Sum() function is expecting a single string as input. This input is a list of SOM expressions. So the easy way to fix this is to simply enclose your list of field names in quotes like this:
Sum("ActSalary,ActEre,ActOther")
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script