Validation doesn't work with updateSelected
Posted: Wed Sep 22, 2010 12:58 am
Dear all, I'm trying to validate a field in my first Xataface 1.2.5 project.
I wrote a latitude__validate function and a validators:regex for the latitude field in the fields.ini file for my table.
They works correctly when I edit the records, I tested them disabling or enabling javascript in the browser.
But when I use the updateSelected button on a list of records the validation is not applied and unmatched values are saved in the database.
This happens either using the regex or the latitude__validate function alone, and using the two methods together.
Is this the expected behavior or am I missing something and the validation could be applied with the updateSelected too?
Any help would be greatly appreciated.
I wrote a latitude__validate function and a validators:regex for the latitude field in the fields.ini file for my table.
They works correctly when I edit the records, I tested them disabling or enabling javascript in the browser.
But when I use the updateSelected button on a list of records the validation is not applied and unmatched values are saved in the database.
This happens either using the regex or the latitude__validate function alone, and using the two methods together.
Is this the expected behavior or am I missing something and the validation could be applied with the updateSelected too?
Any help would be greatly appreciated.