SurveyJS Survey Creator v2.5.7

Released: Jan 22, 2026

Mises à jour de v2.5.7

Fonctionnalités

  • Semantics Validation
    • Expression validation, introduced in SurveyJS v2.5.6, is extended to detect semantic errors. These errors indicate that an expression is syntactically valid but has no meaningful effect because it always evaluates to the same value.
  • Expression Validation API
    • Expressions can also be validated programmatically using the validateExpressions(options) method.
    • This method detects the following types of errors:
      • Unknown variable
        • The expression references an undefined variable or an unknown question, panel, or page name.
      • Unknown function
        • The expression references an unregistered function.
      • Semantic error
        • The expression is syntactically valid but has no meaningful effect because it always evaluates to the same value.
      • Syntax error
        • The expression contains invalid syntax, such as unmatched parentheses, missing operands, or invalid operators.
    • When called without arguments, the method validates all four error types. It returns an array of IExpressionValidationResult objects. Each object contains the survey element and property name that hold the invalid expression, along with detailed error information.
  • Add Hours, Minutes, or Seconds to Date-Time Values
    • The dateAdd expression function now supports adding or subtracting full hours, minutes, or seconds to and from date-time values.

Correctifs

  • Form Library
    • JSON schema with properties metadata contains a typo: allOff instead allOf.
    • Custom required property is not validated.
    • Required color input does not prevent survey submission when no color is selected.
    • [Accessibility] Radio Button Group: "Clear" button doesn't have the aria-label attribute.
    • Serializer.generateSchema() does not output derived types for polymorphic single-object properties.
    • Date and time input mask: ss placeholder doesn't insert actual seconds value.
    • fromJSON() with validatePropertyValues: true produces an error when the choices property is defined as a function that references the object instance.
    • Survey Creator: JSON Editor incorrectly flags a valid property value as invalid.
  • Survey Creator
    • Property Grid: logicAllowTextEditExpressions: false still shows caret in expression editors.
    • Choices table: "Remove" button is enabled regardless of minChoices.
    • Choices table: Exception occurs when removing all choices and then adding a new one with minChoices defined.
    • Expression validator displays only one error at a time.
    • "Logical rules are incomplete" popup uses the default browser font style.