Solution skill
Modal View not updating after providing new modal view after receiving view submission
Complete solution
Shows how to fix modal View not updating after providing new modal view after receiving view submission. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Use ack(responseaction='update', view=yourview_dict). Currently I am utilizing the Slack SDK for Python using AWS Lambda and whenever I submit the view submission the modal is not updated.
Steps
- Currently I am utilizing the Slack SDK for Python using AWS Lambda and whenever I submit the view submission the modal is not updated. I get a response from the views.update API but it does not update on slack. Not sure what the issue is here, I have tried multiple searches on the web.
- If views.update returns ok but the Slack modal never updates, check the shape of what you ack: the reporter had wrapped their new view in an extra top-level 'view' key, and removing the nested key fixed it. The ack payload should be the view object itself, not { view: {...} }. Use ack(responseaction='update', view=yourview_dict).
When to use
You are seeing this: Not sure what the issue is here, I have tried multiple searches on the web. Use this skill when you run into "Modal View not updating after providing new modal view after receiving view submission".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In gh:slackapi/python-slack-sdk#1373 (https://github.com/slackapi/python-slack-sdk/issues/1373), the reporter ran into this: Currently I am utilizing the Slack SDK for Python using AWS Lambda and whenever I submit the view submission the modal is not updated. I get a response from the views.update API but it does not update on slack. Not sure what the issue is here, I have tried multiple searches on the web. The verified resolution: If views.update returns ok but the Slack modal never updates, check the shape of what you ack: the reporter had wrapped their new view in an extra top-level 'view' key, and removing the nested key fixed it. The ack payload should be the view object itself, not { view: {...} }. Use ack(responseaction='update', view=yourview_dict).
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_J9oMbcEek8Vpafx_tAgSBw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Modal View not updating after providing new modal view after receiving view submission <span>— Vectle</span></a>