As a user, I can look up and select standard vocabulary terms as answers to questions

Description

The goal is to create a widget that:

  • is displayed as an input

  • is linked to a vocabulary; when the user starts typing, suggestions matching their input pop up

  • when the user selects a suggestion, that suggestion will be displayed in a specified UI element

  • can be configured to accept a specific number of suggestions that can be selected

Widget configuration:

  • name: the name attribute of the input

  • source: a vocabulary endpoint

  • suggestionCategories: a list of ids of terms from the source vocabulary, specifying the “ancestors” of the terms that should be suggested. If absent, the suggestions can be generated from the entire vocabulary.

  • max: How many suggestions are allowed to be selected.
    max = 0 means no limit
    max = 1 means selecting a new suggestion will replace the existing one if (one exists)

  • selectionContainer: a DOM node (TBD?) specifying where the selected suggestions should be added; if missing, the selections will be added under the input by default. When added to the selection container, each entry should havevan associated hidden input with the same name as te main text input

 

Environment

None

Status

Assignee

Francis Nguyen

Reporter

Marta Girdea

Labels

None

External issue ID

None

External issue ID

None

Sprint

None

Priority

Medium