NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
how generic is it? (Score:1)
Re: (Score:1)
HTML::FillInForm->fill(\$html, $q,
classify => {
invalid => [qw(name password)],
required => [qw(name password birth_date)],
},
);
These are just the first 2 obvious uses I see for this, but I'm sure there are other
thanks and comment (Score:1)
However, I think the form should be clearly marking which fields are required even before it is reloaded.
So, a simple "invalid" class perhaps should be enough.
I know ValidateRM usually puts "missing" or "invalid" on the page, but I had one customer who wanted to just use "Oops!" in all cases. I think that works in most cases, since the page design should already provide the context to explain
In a few cases it is imported to provide more detail, like explaining tha
Re:thanks and comment (Score:1)
You're also assuming that the fields on a form are predefined. We have a CMS that let's users add extra custom fields to different form types and to decide which of those custom fields is required. Having the ability to do this when the form passes through HTML::FillInForm would be the ideal place.
Reply to This
Parent