A select box contains select options only. A select box cannot contain any other element. Use the default setting of a select box and its options to present a list of choices, from which the user must select only one. For example, for a shoe order form, you can create a select box named Width with three options: one each for Narrow, Standard, and Wide.
The options for select boxes appear on the form only when the user clicks the drop-down list box to display the options. Therefore, you can use a select box rather than an option group to save space on a form. Doing so is especially relevant when the number of options is four or more.
Moreover, you can optionally change the default setting of a select box to enable users to select two or more options instead of only one. To do so, change the Multi-Select attribute of the select box from False (the default) to True. If you change this setting to True, the appearance of the select box changes from a drop-down list to a sequential list or list box, meaning that all options are always displayed and therefore require more space on the screen. The user sees multiple lines in the select box and can select multiple options.
When this attribute is set to false, the select box appears as a combo box on the form: The user sees a list box and can select only one item from the list. Catalog users cannot enter a custom value in a select box. However, users can type inside a select box. When they do so, the drop-down list is populated with the options that begin with the typed text. Users can select the option they want from this "auto-complete" list.
To set specifications for the auto-complete list, use the Minimum Search Characters attribute, one of the HTML attributes for select boxes only. Use these attributes to configure the appearance of options in this list, including pagination.
|
Copyright © 2013 CA.
All rights reserved.
|
|