Calculation Error message | Community
Skip to main content
New Participant
Jul 6, 2020 3:49 PM UTC

Calculation Error message

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.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kosta_Prokopiu1
Employee
Jul 17, 2020 9:19 AM UTC

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.

Translate