We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 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