I have a view_submission endpoint in my bolt app, and I want to send an error back to the modal if the user selected a date in the past on the modal's date picker. The slack api docs suggest responding to the payload with a response_action of errors, however I am thoroughly confused how to do this.
My bolt code currently looks like:
app.view('modal', async ({ ack }) => {
ack()
// send errors back
}
If anyone could help or point to any documentation it would be greatly appreciated.
I see that this issue creates a workaround for typescript, but I'm not sure how to adjust it for javascript?
x in one of the [ ])x in each of the [ ])Thanks for flagging this. If I understand it correctly, this seems to relate to https://github.com/slackapi/bolt/issues/305
Yes thank you! Also to be clear, as I said in #305 , I'm not using typescript
@jacklein Can we close this issue now?
Solution was provided here
Most helpful comment
Thanks for flagging this. If I understand it correctly, this seems to relate to https://github.com/slackapi/bolt/issues/305