As a user, I can select simple text options as answers to questions

Description

Widget configuration:

  • name: the name attribute of the input

  • userInput (optional): none(default) | input | textbox

  • regexp (optional; ignored if userInput is none): Accept only a specific format
    • list of predefined options [{id: '...', label(optional) : '...'},...] (optional)

  • min, max number of answers (both optional).

U/UX:
If a list of predefined options is provided, they will be displayed as:

  • radio buttons if max = 1,

  • checkboxes otherwise
    If userInput != none, the specified input type is displayed accepting user input. What the user types is checked against the regexp (if provided) in real time and the user is prevented from submitting an invalid entry.
    If max > 1, the user may press Enter in the userInput to add their entry and begin entering a new one. User entries will be displayed under the list of predefined options, preceded by a delete button .

Environment

None

Status

Assignee

Francis Nguyen

Reporter

Marta Girdea

Labels

None

External issue ID

None

External issue ID

None

Sprint

Priority

Medium