You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe that modal displays a generic "trouble connecting" error.
code
case slack.InteractionTypeViewSubmission:
result := d.handleFormSubmission(interaction)
if (FormError{}) != result {
payload := slack.NewErrorsViewSubmissionResponse(map[string]string{
result.Key: result.Message,
})
d.socketService.Ack(*event.Request, payload)
return
}
Okay, I figured this out. Hopefully this will help someone out who ends up here;
You can only reference the BlockID for an InputBlock. In my case, I had a SelectBlockElement with a list of channels inside a SectionBlock, which worked flawlessly up until I hit this issue of trying to validate the input.
What happened
Calling
Ack
with a payload on modal view submission behaves unexpectedly.Expected behavior
Displaying errors in views should highlight the appropriate block/field.
Steps to reproduce
view_submission
interaction.errors
response action as payload.code
manifest.yaml
Versions
The text was updated successfully, but these errors were encountered: