goxiaoy / flutter_survey_js

Flutter client library for parsing and display surveyjs.io survey
https://goxiaoy.github.io/flutter_survey_js/
MIT License
15 stars 15 forks source link

Choices not shown when setting choicesFromQuestion for radiogroup #126

Open karpy47 opened 4 months ago

karpy47 commented 4 months ago

When referring to choices in another question (choicesFromQuestion) no choices are shown.

To Reproduce SurveyJs json

{
 "logoPosition": "right",
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "radiogroup",
     "name": "question1",
     "choices": [
      "Item 1",
      "Item 2"
     ]
    },
    {
     "type": "radiogroup",
     "name": "question2",
     "choicesFromQuestion": "question1"
    }
   ]
  }
 ]
}

Screenshots Screenshot 2024-02-05 143226

Additional Have not tested for other elements, but there seem to be a test for checkbox that include choicesFromQuestion.

goxiaoy commented 4 months ago

choicesFromQuestion is unsupported now