Closed tjones-dev closed 8 months ago
Describe the bug Using the checkbox element and providing it with an existing answer that matches SurveyJS behavior, pre-populates the survey with other instead of the expected string.
other
To Reproduce SurveyJs json
"logoPosition": "right", "pages": [ { "name": "page1", "elements": [ { "type": "checkbox", "name": "question1", "choices": [ { "value": "Item 1", "text": "Latex" }, { "value": "Item 2", "text": "Peanuts" }, { "value": "Item 3", "text": "Spinach" } ], "showOtherItem": true, "otherText": "Food Allergy" } ] } ] }
SurveyJs answer
"question1":[ "Item 1", "other" ], "question1-Comment":"Shell fish" }
Expected behavior Should populate the other element with Shell fish
Shell fish
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context N/A
Describe the bug Using the checkbox element and providing it with an existing answer that matches SurveyJS behavior, pre-populates the survey with
other
instead of the expected string.To Reproduce SurveyJs json
SurveyJs answer
Expected behavior Should populate the other element with
Shell fish
Screenshots![image](https://github.com/goxiaoy/flutter_survey_js/assets/27797194/917459f7-57a3-4f7c-9e1b-3f8613b916d8)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context N/A