All products

Check SurveyJS form logic with AI

Inspect a form definition for invalid expressions, unreachable conditions and incorrect references, then review the explanation for each finding.

To check SurveyJS form logic with AI, consider a delivery address that should appear only for courier orders. The form can load successfully while an expression still refers to an old question name or a choice that no longer exists. The surveyjs-linter guide uses a static check that reports the rule and the path to the affected part of the definition.

Read warnings alongside errors. Some expressions are valid in form yet unlikely to behave as intended. Custom functions or variables can also change how a finding should be interpreted. Establish the project context before suppressing a rule. The linter itself leaves the input unchanged.

What it does

  • Identify logic defects in a form definition
  • Check conditions on questions and pages
  • Find the object path for a reported issue
  • Distinguish errors from warnings needing judgement
  • Repeat checks after an approved correction

Install and use

  1. Install the skill and use a compatible survey-core version exposing its linter. A Node.js environment can run local checks on the form JSON. No respondent data or external service key is needed.
  2. Ask “Check the address display condition. For each finding show the affected path, rule and proposed correction before editing the form.”
  3. Review the logic, apply intended changes and test the relevant routes in a rendered form.

FAQ

Source

Made by SurveyJS (Devsoft Baltic OÜ). Original skill: surveyjs-linter, published on GitHub under the MIT licence.

View on GitHub