Modal Label

BlockModals

Label wrapper for a text input or select component in a modal.

Inputs

LabelRequired

Label text shown above the component.

Example: Reason

Description

Optional helper text shown under the label.

Example: Please provide as much detail as possible.

Where it goes

This block can only be placed inside Show Modal.

Build a bot using blocks like Modal Label

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: modalcmp_layout_label
  • Can only be placed inside show_modal (components).

Inputs

FieldInventScript nameValue
Labellabele.g. "Reason"
Descriptiondescriptione.g. "Please provide as much detail as possible."
Componentcomponentblocks: func() { ... } with only modalcmp_input_text*, advmsgcmp_interaction_select_* blocks

Example InventScript

show_modal(Args{
	custom_id: "report_modal_123",
	title:     "Bug Report",
	components: func() {
		modalcmp_layout_label(Args{label: "Reason"})
	},
})

More modals blocks