modalcmp_layout_label(Args{
label: "Reason",
component: func() {
modalcmp_input_text(Args{custom_id: "bug_reason", style: "paragraph"})
},
})
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
| Field | InventScript name | Value |
|---|---|---|
| Custom ID | custom_id | e.g. "bug_reason" |
| Style | style | "short", "paragraph" |
| Placeholder | placeholder | e.g. "Write here..." |
| Default Value | value | |
| Required | required | "true", "false" |
| Min Length | min_length | e.g. "10" |
| Max Length | max_length | e.g. "2000" |