Hi there,
In case the input type of a text question is changed, some expressions that are not appliable on input type text are still applied on form submission and then a wrong validation error is shown.
Steps to reproduce
- Create a question of type text and input type date
- Set the max value expression of this question to
today()
- Change the input type from date to text
- Try to ansewr the survey filling "test" on this question
- An error as on the image attached will be shown
After the whole process the json should look like this
JSON{
"pages": [
{
"name": "nps-panel",
"elements": [
{
"type": "panel",
"name": "nps-panel",
"elements": [
{
"type": "text",
"name": "question1",
"isRequired": true,
"maxValueExpression": "today()"
}
]
}
]
}
],
"showPrevButton": false,
"showQuestionNumbers": "off",
"completeText": {
"fr": "Envoyer"
},
"questionsOnPageMode": "questionPerPage",
"widthMode": "static",
"width": "1000px"
}
I think that expressions that are not applicable to the current input type should not be applicable when submitting the answer.
Best regards,
Luan