Hi everyone, I will appreciate if someone can guide me on this. I have a field with a specific format, for ex 1111-11-5555, where the 5555 can be calculated from another field. The field has a regex validation and also check that the final part is valid. The wanted behaviour is: 1- if the user enter the entire value with the right format then fire the validation for the field. (no problem) 2- if the user enter the value with only 1111-11 then calculate the final part from the other field and then fires the same validation used for (1).
The problem is that I tried with a preValidator but doesn't allow to modify the tainted values, so in the second case it's always rejected by validation. If someone knows the PEAR QuickForm then will know the concept of filters. This is what I need. A callback function which makes some filters on data submitted prior to validate. I don't know if there is something similar on symfony. The only way that I found to make it work is override the bind method of the form to check this field first. Any help will be appreciated Kind regards -- Hugo Sarti Ingeniero en Sistemas de Información Syons www.syons.com.ar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
