show_modal(Args{
custom_id: "report_modal_123",
title: "Bug Report",
components: func() {
modalcmp_layout_label(Args{label: "Reason"})
},
})
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.
Component
Component
Holds blocks: Text Input, String Select Option, String Select, User Select, Role Select, Mentionable Select, Channel Select
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
| Field | InventScript name | Value |
|---|---|---|
| Label | label | e.g. "Reason" |
| Description | description | e.g. "Please provide as much detail as possible." |
| Component | component | blocks: func() { ... } with only modalcmp_input_text*, advmsgcmp_interaction_select_* blocks |