dedoz
27 Jan 2012, 12:06 AM
is there a way to map model validations to form validations ? So when the form needs to validate a field uses the model validations ?
I have a model with some validations declared, and then load a record.
Then i use form.loadRecord() to load that record values into the form.
i have to declare validations twice ? in the model and then in the form ? can i tell to form to use same model validations for each field ? or is there a way to map this two things ?
(sorry for my bad english)
I have a model with some validations declared, and then load a record.
Then i use form.loadRecord() to load that record values into the form.
i have to declare validations twice ? in the model and then in the form ? can i tell to form to use same model validations for each field ? or is there a way to map this two things ?
(sorry for my bad english)