Cannot submit form – loading spinner
-
Hi,
We have a contact form on a goDaddy hosting that sometimes cannot be submitted, and the loading spinner keeps spinning indefinitely.
I have realized that, at least the following situation occurs:
- Users click on the submit button (not sure how many times, reproduced with 2 or 3)
- The spinner keeps rotating indefinitely
Upon investigation, I noticed the
/feedback‘s api call response is an HTTP 429 Too many redirects, probably because of an anti brute force attack mechanism.The thing is, the error callback (catch) doesn’t handle network errors and only outputs the error to the console. The spinner doesn’t reflect the current state and users keep waiting when the request has been already fullfilled (unsuccessfully).
How can we provide an error message when a network error occurs?
Also, in order to prevent the user clicking more than once, how can I disable the submit button while the request is being processed? I tried myself by listening to the DOM events on the plugin documentation, but they always come in inverse order so the button ends up being disabled when it shouldn’t.Thanks for your time
The topic ‘Cannot submit form – loading spinner’ is closed to new replies.