Creating or configuring forms > Configuring the <components> element > Configuring a suggest box

6.1.14 Configuring a suggest box

A suggest box is a text box or text area that displays a preconfigured set of selections that match the user's input. Suggest boxes are useful when there are too many choices to present to the user—so many that a select box would be unreasonable. It is also appropriate when the user can use an arbitrary string, but you want helpful suggestions to be available.

To add/delete/modify a suggest 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 <suggest-box> element.
  4. Select whether to create a static suggest box in which all suggestions are determined when the page is loaded, or a dynamic suggest box in which the logic to determine the suggestions is executed on an external script.
  5. Inferred values incorporate well with suggest boxes. If you are using an inferred value script, have the script return the <suggest-box> root element and all its children.

Related topics