2008/11/3 Jens Schwarz <[EMAIL PROTECTED]>: > So the "Date" element has those nice "prefix" attributes. In addition with > "constraints Required": If a user does not select any date (i.e. "-year-", > "-month-" and "-day-" remain selected), he gets the message "This field is > required". > > My question: Is it somehow possible to add such a "prefix" also to a regular > "Select" element so that I get the same behaviour (i.e. "This field is > required" if the "prefix" remains selected)? I tried this without success:
Yup - see the docs for empty_first() and empty_first_label() http://search.cpan.org/~cfranks/HTML-FormFu-0.03005/lib/HTML/FormFu/Element/_Group.pm#empty_first http://search.cpan.org/~cfranks/HTML-FormFu-0.03005/lib/HTML/FormFu/Element/_Group.pm#empty_first_label Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu