Page validate not validating custom validators
This helper validates that your attributes have only numeric values.By default, it will match an optional sign followed by an integral or floating point number.This validation is very specific to web applications and this 'acceptance' does not need to be recorded anywhere in your database.If you don't have a field for it, the helper will just create a virtual attribute.
Validations are used to ensure that only valid data is saved into your database.
This method validates that a checkbox on the user interface was checked when a form was submitted.
This is typically used when the user needs to agree to your application's terms of service, confirm that some text is read, or any similar concept.
You can do anything you like to check for valid data within the block.
If your validation fails, you should add an error message to the model, therefore making it invalid.