Open pinnama1212 opened 6 years ago
Your runtime manipulations do not seem to influence "Selection"... Please check the Alpaca version. If you are using version 1.5.24, it might work with version 1.5.23. But it doesn't have to be.
Thank you, i will try and post my comments today.
I tried with 1.5.23 but behavior is same. Seems like an endless loop for binding data in this case. Can someone help me real quick as I got stuck with this and we are having a demo this weekend.
Are you trying to build a form where both the questions and the options are fed from a function? I am assuming that the data attribute you specified is how you are receiving the questions.
Assuming this is correct, you are setting up the form backwards. The data attribute is meant to populate the form answers, not the questions. The schema and options for the form should be written after you already know what the questions are, so create a function which takes those specifications and creates the schema and options.
Here's something I threw together which I think is what you're trying to do. https://jsfiddle.net/w5b6z8df/83/
I didn't do everything, like address the difference between the different QuestionType like multiselect and choice, but this should get you started.
Hi, I have a scenario, where i display multiple questions and answers. Answers are radio buttons. But this radio items comes from a function so i have user dataSource. But there is a recursion call happening to this dataSource function. I have created an example in jsfiddle https://jsfiddle.net/pinnama/w5b6z8df/55/. Can you please correct me if i am missing some thing?