We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to add Custom Validation in a Form



26.3k
edited Aug '14

Respect for briefness!

  1. Choose validator you want to use or create your own: https://docs.phalcon.io/en/latest/reference/validation.html#validators

  2. Add validator to the form: https://docs.phalcon.io/en/latest/reference/forms.html#validation