4 Feb 13:26
[FormBuilder] FormBuilder and Data::FormValidator
From: Mike Scoltock <mscolly <at> gmail.com>
Subject: [FormBuilder] FormBuilder and Data::FormValidator
Newsgroups: gmane.comp.lang.perl.modules.formbuilder
Date: 2007-02-04 12:29:15 GMT
Subject: [FormBuilder] FormBuilder and Data::FormValidator
Newsgroups: gmane.comp.lang.perl.modules.formbuilder
Date: 2007-02-04 12:29:15 GMT
Hi all, I've been using FormBuilder and Data::FormValidator together, but have run into a few fairly minor problems. 1. Unless you remember to put a field in "optional" list in the Data::FormValidator profile, it won't be checked or filtered or anything. This logic is slightly different to FormBuilder's, where there isn't really a difference between optional and "not required". 2. A Data::FormValidator constraint which isn't specific to just one field (for example, a 'require_some') causes FormBuilder to create a new fictitous text field with the name of the contraint and with the constraint's error message. The error ought to be reported at the level of the form, rather as an error on any one field. This I managed to correct just by using some css to hide the field leaving the message. 3. These modules don't seem to work correctly together for fields with options and other=>1. Instead of returning the value of the "other" text field, it returns the name of the field. Other than these minor and avoidable problems though, a great job combining these two modules. For example, I've now got date entries being thoroughly checked in almost any format with just a few lines of code. _______________________________________________ FBusers mailing list FBusers <at> formbuilder.org http://www.formbuilder.org/mailman/listinfo/fbusers
RSS Feed