String Select

BlockAdvanced Messages

String select menu for advanced messages and modals.

Inputs

Custom IDRequired

Custom ID for this select component (1-100 chars).

Example: reason_select

Placeholder

Placeholder text when no value is selected.

Example: Choose an option

Min Values

Minimum selected values (0-25).

Example: 1

Max Values

Maximum selected values (1-25). Defaults to 1.

Example: 1

Disabled

Whether this select is disabled.

Optionstruefalse
OptionsRequired

String select options (1-25).

Holds blocks: String Select Option

Where it goes

This block can only be placed inside Action Row or Modal Label.

Build a bot using blocks like String Select

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: advmsgcmp_interaction_select_string
  • Can only be placed inside advmsgcmp_layout_actionrow (children), modalcmp_layout_label (component).

Inputs

FieldInventScript nameValue
Custom IDcustom_ide.g. "reason_select"
Placeholderplaceholdere.g. "Choose an option"
Min Valuesmin_valuese.g. "1"
Max Valuesmax_valuese.g. "1"
Disableddisabled"true", "false"
Optionsoptionsblocks: func() { ... } with only advmsgcmp_interaction_select_option* blocks

Example InventScript

advmsgcmp_layout_actionrow(Args{
	children: func() {
		advmsgcmp_interaction_select_string(Args{
			custom_id: "reason_select",
			options: func() {
				advmsgcmp_interaction_select_option(Args{label: "Ant", value: "ant"})
			},
		})
	},
})

More advanced messages blocks