Hi all, I have just tried adding validation to my dbforms based system, and it worked fine until I tried to do an update on a child form within a parent form. Then I get errors implying that 'required' parent fields are not filled in, when they are.
Looking at the hidden fields in the form, the field which defines the validation for each form is defined like <input type="hidden" name="formValidatorName" value="train_course">, which means that a different validator for the subform, eg <input type="hidden" name="formValidatorName" value="train_course_category"> will not be invoked. Only the validator of the main form will be invoked with the result above. I would suggest to change dbforms that each subform can have it's own validator. So you will not longer define validation of the subform in the validator of the main form. Is this o.k? Regards, Henner ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
