An OptionType backed by a fixed list of choices, rendered as an HTML select element. Built with ListOptionTypeBuilder and used to declare a dropdown field for mail merge or field definitions, such as the configuration options for an email trigger.

Implements: OptionType


Properties

PropertyReturnsDescription
listList<Option>The fixed set of choices offered by this option type.
optionTypeIdStringThe option type identifier used by editors to pick the right input control for this type.

Methods

getList()

Returns: List<Option>

The fixed set of choices offered by this option type.

getOptionTypeId()

Returns: String

The option type identifier used by editors to pick the right input control for this type.

toHtml(String triggerCode, String value)

Returns: String

Renders this option type as an HTML select element listing its choices, with the given value pre-selected.

ParameterDescription
triggerCodeused as the id and name attribute of the generated select element
valuethe currently selected option code, used to mark the matching option as selected
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.