Closed JaneSjs closed 2 months ago
The exception occurs becase an object passed to the calculatedValues
array is not a valid calculated value. To solve the issue, create an instance of a CalculatedValue object.
import { CalculatedValue } from "survey-core";
survey.calculatedValues.push(new CalculatedValue({ name: "Foo", expression: "bar" }));
T17997 - Modify calculated values https://surveyjs.answerdesk.io/internal/ticket/details/T17997
Creating an array of calculated values throws an exception.
or
View Demo