survey-creator
survey-creator copied to clipboard
Invalid conditions syntax (Expression Editor)
In SurveyJs it is possible to show/hide a question based on a condition but the condition can be of invalid Syntax:
What is the current behavior?
If the condition has an invalid syntax SuveyJs will save the condition but will not execute it. There is no visual feedback to the user that the condition is invalid.
What is the expected behavior?
Provide visual user feedback that the condition is invalid syntax and do not allow saving conditions with invalid syntax
Test code with an invalid condition:
{
"title": "Test Title",
"pages": [
{
"name": "page1",
"elements": [
{
"type": "boolean",
"name": "question1"
},
{
"type": "text",
"name": "question2",
"visibleIf": "{question1 = true"
}
]
}
]
}
We have expression editor in our Roadmap. This task should be solved in this context.
Thank you, Andrew