Check whether your HTML forms have valid information using a sample contact form and validation scripts.
"The best registration forms are the ones that are so easy to use that you don't even notice how they work.
You can avoid these headaches once and for all with Java Script's amazing way to combat bad form data with a technique called "form validation".
You have code that is (most likely) heavily tested and also updated on a regular basis.
The form will ask you to name a new product and will then check to ensure that the name is unique.
We wrote a quick Open Whisk serverless action to do the validation.
If they are empty we check each and set a specific error for each. See the Pen form validation 1 by Raymond Camden (@cfjedimaster) on Code Pen.
This will render a simple list of errors on top of the form.
Also note we fire the validation on submit rather than as every field is modified.
The plugin comes bundled with a useful set of validation methods, including URL and email validation, while providing an API to write your own methods.
All bundled methods come with default error messages in english and translations into 37 other languages.