Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Form validation for used elements

How can I validate used element of form? e.g. I have email, password in form and both have validation and in view I am using only email, after post validation happened for both.



1.4k
Accepted
answer
edited Feb '15

i bvelieve its

```php public function beforeValidation() { // validation here with checks if field is empty }

```

Can we used this function in form



1.4k

all classes has events, and all events are standardized