Text Input

BlockModals

Text input component for modal forms.

Inputs

Custom IDRequired

Custom ID for this input (1-100 chars).

Example: bug_reason

StyleRequired

Input style.

Optionsshortparagraph
Placeholder

Placeholder text.

Example: Write here...

Default Value

Optional default input value.

Required

Whether this field must be filled.

Optionstruefalse
Min Length

Minimum text length (0-4000).

Example: 10

Max Length

Maximum text length (1-4000).

Example: 2000

Where it goes

This block can only be placed inside Modal Label.

Build a bot using blocks like Text Input

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_input_text
  • Can only be placed inside modalcmp_layout_label (component).

Inputs

FieldInventScript nameValue
Custom IDcustom_ide.g. "bug_reason"
Stylestyle"short", "paragraph"
Placeholderplaceholdere.g. "Write here..."
Default Valuevalue
Requiredrequired"true", "false"
Min Lengthmin_lengthe.g. "10"
Max Lengthmax_lengthe.g. "2000"

Example InventScript

modalcmp_layout_label(Args{
	label: "Reason",
	component: func() {
		modalcmp_input_text(Args{custom_id: "bug_reason", style: "paragraph"})
	},
})

More modals blocks