surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.2k stars 809 forks source link

Choices & choices from web conflict #2827

Open xxxKOTxxx opened 3 years ago

xxxKOTxxx commented 3 years ago

I have a question (or UI bug) related to choices-based widget.

If in checkbox/radiobutton widget used both choices and choices from web data sources, survey shows basic choices on first rendering and after fetching remote data replace them by choices from web. Is it expected behaviour?

I created small reproducing plunker

Possibly it's better to remove choices if choices from web is set? Or just don't render choices while data is loading?

tsv2013 commented 3 years ago

Yes, they don't work together. We'll discuss what we can do. Right now you can reset choices manually if choicesByUrl is set.