I have modal flow in my Slack App. I have some issues with the end of the flow however. Basic idea of the flow. You get a Modal, you do a selection, you get another modal, you perform an action and then Modal disappears.
I have tried two different ways both with problems but with different result
Flow 1: response_action: "update"
- You press a button on home tab that opens a modal with bot.views.open
- You make a selection
- In the response I send {response_action: 'update', view: }
- User gets the new Modal without any errors. They then click a button.
- Now I would like the modal to disappear. So on the result of the action I send {response_action: 'clear'}
- Nothing happens :(. I would like the modal to disappear of course :)
Flow 2: bot.views.update
- You press a button on home tab that opens a modal with bot.views.open
- You make a selection
- I create the same view as above but I run bot.views.update{view_id: , view: }
- New view comes up however it has an error in the top: We had some trouble connecting. Try again?
- Now I would like the modal to disappear. So on the result of the action I send {response_action: 'clear'}
- Nothing happens :(. I would like the modal to disappear of course :)
So second flow has annoying error but same result with not disappearing. Feels like Im missing something here.
Somebody have an Idea what Im missing?