When editing the elements of the quiz, empty question options are added

Created on 14 March 2024, 9 months ago

Problem/Motivation

I am adding a quiz element (a list of checkboxes), from which you can select an unlimited number of values. The correct answer is only 1. Every time I go to edit an item, an empty option is added to the answers. Deleting it doesn't always work. To put the quiz in order, you have to go to the webform source and delete unnecessary parameters in yml format

Steps to reproduce

1) It is necessary to create a question with an unlimited number of possible answers (a list of checkboxes), which will consist of more than 3 elements, among which one is correct. Next, you need to save the item and add a few more such questions.

2) After saving the webform, go to edit any component and it will automatically add one or two more empty ones to the options

It is necessary to remove the automatic addition of elements during creation and editing, so that I can only add the required number of elements myself with the "Add" button

🐛 Bug report
Status

Needs work

Version

2.1

Component

Code

Created by

🇷🇺Russia mr.pomelov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024