-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle API errors #21
Comments
In the contactform setting under
Is this what you are looking for? |
No, what I was thinking is to show the user (on the front-end side) that an error occurred at the API side As an example, if the API replies with a "500: internal server error", the form on Front End would show "Internal server error" |
Hi @kennym, do you have any plans to address this issue? Your solution is perfect for my use case except for this detail. I'd love to contribute but PHP is not really amongst my prefered programming languages so I don't know even where to start. |
Thanks! |
Bump! Wondering if this was released? |
Great plugin, but sis this possible yet? Would really make the plugin more usefull in a lot of cases. |
I implemented this workaround for the API error codes to be treated as CF7 errors, so that colors match the message type and form doesn't get wiped if API response had any error: #62 |
Currently, if the form is filled up properly but an error occurs at the API side, the form still shows a 'success' message. Would be nice to be able to show the server error on the form if the API call fails.
The text was updated successfully, but these errors were encountered: