Input Validation Bypass on Netlify forms request

Hi @cavacado, thanks for posting and welcome to the Netlify support Forums.
Very good question.

You can do client-side validation as you indicated.
However, unfortunately Netlify forms does not currently have an API for you to do backend form validation.

An alternative solution will be to POST the form data to a Netlify function and then validate the form data for the required fields as you stated. If the validation requirments are not met then you can respond with an error message, redirect e.t.c to the end user.

Once the form data is valid after the passing the required validation, you can use SMTP clients such as Nodemailer, Emailjs e.t.c to send the form data to your email just like how Netlify forms forwards the submissions to your configured email. You can also use third party providers like SendGrid e.t.c as well to send form data to your email.

In addition, there is a post here on this forum that is similar to the question you asked.

@fool’s response explains how submissions work and it should give you an idea of the whole Netlify form submission workflow.

Hope this helps.
Thanks.