survey-creator
survey-creator copied to clipboard
Don't show choices adorners when using choicesFromUrl
Are you requesting a feature, reporting a bug or ask a question?
Bug
What is the current behavior?
The creator shows buttons to add "normal" options to questions that use choicesFromUrl:
But they don't work. Also buttons to remove options don't work.
What is the expected behavior?
Several solutions:
- Hide the buttons
- Show the buttons, when a user clicks them offer to copy the choices from the service into the survey and afterwards remove the option the user wanted to remove.
- Implement a filtering setting that still uses the live data retrieval, but afterwards filters based on value.
I have no specific need for 2 or 3, but the current behavior is a bug. If you choose solution 2 or 3 this ticket becomes an enhancement instead of a bug report though...
How would you reproduce the current behavior (if this is a bug)?
Go here: https://codesandbox.io/p/sandbox/magical-alex-f5h4qz Try removing a country by clicking the red button.
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://codesandbox.io/p/sandbox/magical-alex-f5h4qz
Specify your
- browser: Ungoogled Chromium
- editor version: Latest
Additional related properties that don't work and might need to be hidden from property grid:
- Choices sort order
- Copy choices from question
- Choices