Do I really need a Form Error Component?

I added an Error component to my email contact Form, but I don’t think it is necessary in my situation. My form is super simple, and Elements warns the user when an invalid email address is entered, and when there’s no message entered. Are there other possible errors that Elements would find and then warn the user with the Error message?

If there were some server issues, like if the email server was down on your hosting account, then the form would error out and show that error.

Or if there were something else preventing the form from connecting to the mail server, then the error message would show.

Without it, the person submitting your form wouldn’t have any indication that the submission failed, and they might think you aren’t replying to them.

IMO it’s good to have the Success and Failed components in the form. :slightly_smiling_face:

1 Like

Given those are possible errors, might it be best to have the error message say something like “An unknown error occurred, please try again later.”