How to validate and show error message on submit?

[original thread by kirannaikRNR]

Hi! By default we’re validating from the get go. So you already have the validation results when you need them. In case you would like to hide the validation when first rendering or even only validate at a later point, you can take a look at our validation modes.