formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Interface Cob2AutoOptions

    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.

    interface Cob2AutoOptions {
        minLength: number;
        unrestricted: boolean;
        valueMode: "value" | "text";
    }
    Index

    Properties

    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: boolean

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

    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.