Creating or configuring forms > Configuring the <components> element > Configuring a list editor

7.1.9 Configuring a list editor

A list editor is a component that allows users to add strings to a list. It is configured using the <list-editor> element. This component has an input area that allows a user to input a string value and buttons on the side for adding or removing items in the list.

To add a value to the list box, the user enters a value into the input component and clicks the "+" button. A user removes a value from the list by selecting one or more items on the list and clicking the "-" button.

The list editor widget currently supports default values and enforces a minimum and maximum number of items in the list. Unlike other components, there may be more than one <default> element. Each default element will add another item to the list.

To add/delete/modify a list box

  1. Open the appropriate XML file located in the Viewpoint home directory. Locate the <components> element.
  2. Create the <component> with a unique id.
  3. Insert the <list-editor> element within <component>.
  4. Determine which widget to use for input to the list editor.

Related topics