Create a Slack modal with dynamic checkbox options
BotsArtificial IntelligenceSales EnablementRecipe Tools
What it does
When someone runs the open modal command in Slack, this automation builds a list of items and creates checkboxes for each one. The modal displays in Slack with all options ready to select.
Who it's for
Operations teams who need to present dynamic choice lists in Slack without manual setup.
Apps used
How teams use this
Build approval checklists from a list
Pull items from a data source and create checkboxes for each one so someone can approve multiple items at once in Slack. The modal updates dynamically based on what is in the list.
Let teams select from inventory
Populate the modal with current inventory items and let someone check the ones they need. The list refreshes each time the command runs so choices are always current.
Add conditional logic to checkbox states
Set up rules so certain checkboxes are pre-selected or disabled based on conditions. Include filters to only show items that meet specific criteria in the modal.
How it works
- Receive the open modal command. Someone runs the open modal command in Slack to start building the dynamic modal with checkbox options.
- Build the checkbox list. Loop through each item in the data list and create a checkbox option variable for that item so the modal has all choices available.
- Check and update each option. For each checkbox option, verify if it is present and update the variable accordingly so the modal reflects the correct state.
- Display the modal in Slack. Send the completed modal with all checkbox options to Slack so someone can select the items they need.