We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

The right way to cancel failed validation for specific attribute

I have few validation rules for each field. I need to cancel field validation on failure, but only for this field. cancelOnFail cancels all else validation for all fields.

As i understand, i can do it using callback, but is it the right way to do it?



32.2k
Accepted
answer

Yes sadly you have to use callback's in that case

Good luck