Highlighted

Calculation Error message

yolandac1

06-07-2020

Hello, I have a form that I am trying to use calculations but receive the following error message -

 

Script failed (language is formcalc, context is

xfa[0].topmostSubform[0],Page1[0].CURRENT_TotalRow1[0])

script=/*AFSimple_Calculated("PRD", new Array ("Current QTYRow1", "UNITPRICERow1")):*/

 

Error: syntax error near token '/' on line 1, column 1

Script failed (language is formcalc, context is

xfa[0].topmostSubform[0],Page1[0].NEW_TotalRow1[0])

script=/*AFSimple_Calculated("PRD", new Array ("New QTYRow1", "UNITPRICERow1")):*/

 

Error: syntax error near token '/ on line 1, column 1.

 

I'm hoping not to have to re-do this form and there is an easy fix. The language on all the fields is FormCalc.

 

Replies

Highlighted

Kosta_Prokopiu1

Employee

17-07-2020

I would not expect a /* in your script. FormCalc uses either semicolon or // as comments. My guess is that the error relates to the /*...*/ of the script line.