Calculation Error message | Community
Skip to main content
New Participant
July 6, 2020

Calculation Error message

  • July 6, 2020
  • 1 reply
  • 1026 views

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
July 17, 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.