This form is an example how how you can use conditional logic and calculation fields to conditionally prevent the form from being submitted, with your own custom error message.