I have two pages : Create , Update . both of have a field for upload img file .
in creation of page i need to validate the img file , but in update i dont have to .
how i can set custom validation for every page in the model ?
I have two pages : Create , Update . both of have a field
Share
This can be done by using scenarios.
These determine when a particular validation rule should be used.
Something like :
You can take a look at the official documentation for more information on validation/scenarios.