Created
June 4, 2020 19:42
-
-
Save theaccordance/e6a22932ba7975a961e5bb263a3bfb83 to your computer and use it in GitHub Desktop.
Slack Open Modal Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": { | |
"type": "plain_text", | |
"text": "New Seed Company", | |
"emoji": true | |
}, | |
"submit": { | |
"type": "plain_text", | |
"text": "Generate", | |
"emoji": true | |
}, | |
"type": "modal", | |
"callback_id": "seed_company_request", | |
"close": { | |
"type": "plain_text", | |
"text": "Cancel", | |
"emoji": true | |
}, | |
"blocks": [ | |
{ | |
"type": "divider" | |
}, | |
{ | |
"block_id": "seed_environment", | |
"type": "input", | |
"element": { | |
"action_id": "env_input", | |
"type": "static_select", | |
"placeholder": { | |
"type": "plain_text", | |
"text": "Select an environment", | |
"emoji": true | |
}, | |
"options": [ | |
{ | |
"text": { | |
"type": "plain_text", | |
"text": "Develop", | |
"emoji": true | |
}, | |
"value": "develop" | |
}, | |
{ | |
"text": { | |
"type": "plain_text", | |
"text": "QA", | |
"emoji": true | |
}, | |
"value": "qa" | |
}, | |
{ | |
"text": { | |
"type": "plain_text", | |
"text": "CS Demo", | |
"emoji": true | |
}, | |
"value": "cs-demo" | |
}, | |
{ | |
"text": { | |
"type": "plain_text", | |
"text": "Sales Demo", | |
"emoji": true | |
}, | |
"value": "sales-demo" | |
} | |
] | |
}, | |
"label": { | |
"type": "plain_text", | |
"text": "Environment", | |
"emoji": true | |
} | |
}, | |
{ | |
"block_id": "seed_workspace", | |
"type": "input", | |
"element": { | |
"action_id": "workspace_input", | |
"type": "plain_text_input", | |
"placeholder": { | |
"type": "plain_text", | |
"text": "example: 'acme'", | |
"emoji": true | |
} | |
}, | |
"label": { | |
"type": "plain_text", | |
"text": "Workspace", | |
"emoji": true | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment