A select element can be displayed as a combobox. It can be converted to a text input field so that it displays a list of possible options as the user types. See cob2auto for this feature, these are the optional settings for that feature.

Hierarchy

  • Cob2AutoOptions

Index

Properties

minLength

minLength: number

Minimum length of the entered text to trigger the autocomplete, defaults to 0. May be useful to improve performance when there are many select options.

unrestricted

unrestricted: boolean

When true, allows arbitrary text input, even if no option corresponding to the entered value exists.

valueMode

valueMode: "value" | "text"

Affects which value is used e.g. for evaluating conditions such as hidden-if. When value: Use the value of the selected option. When unrestricted is enabled and no matching option exists, use the text as entered in the autocomplete input field. When text: Use the text as entered in the autocomplete input field.