sfPokaYokePlugin symfony Client Side Validation
The sfPokaYokePlugin (pronounced with the ‘e’ on the end e.g. poka-yoki). Simply put it is the use of simple mechanisms that stop mistakes being made. sfPokaYoke provides client-side form validation based on existing action.yml validation files. This validator will provide fully configurable inline errors on blur events and listed errors once the form is submitted.
This plugin was built after reading “Designing the Obvious” by Robert Hoekman, jr. and working with a number of unsatisfactory validation libraries. It is intended that this plugin will allow you to configure the validation and feedback to make your forms poka yoke devices i.e. impossible for users to make any errors while entering data.
Thanks to Alon Noy for a starting point for the validators! The following symfony validators have been ported to JavaScript implemented in the plugin:
- sfStringValidator
- sfNumberValidator
- sfRegexValidator
- sfEmailValidator
- sfCompareValidator
I also plan to implement a client side callback validator that will allow you to call your own client side validators or even call ajax function to run server side validation in real time. Read More…










