Skip Menu |

This queue is for tickets about the CGI-FormBuilder CPAN distribution.

Report information
The Basics
Id: 18457
Status: resolved
Worked: 2 min
Priority: 0/
Queue: CGI-FormBuilder

People
Owner: Nobody in particular
Requestors: danny [...] cit.uws.edu.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.03
Fixed in: (no value)



Subject: javascript validation error with checkbox and radio when field name contains a dash (-)
Darwin Kernel Version 8.5.0 Perl: v5.8.6 Ultimate Module, I use it everyday. Maybe there is some special requirements for field names which I don't know,but otherwise when I declare: ... my $form = CGI::FormBuilder->new( fields => [], ); $form->field(name => 'new-position', type => 'checkbox', required => 1, options => [{7 => 'manager'}]); print $form->render(); ... when I try to submit the form, the browser gives me "Check one or more of the "New Position" options" error even though I checked the value. However, without the dash ... my $form = CGI::FormBuilder->new( fields => [], ); $form->field(name => 'newposition', type => 'checkbox', required => 1, options => [{7 => 'manager'}]); print $form->render(); ... works perfectly! *(test in both firefox and safari)
From: fbusers-subscribe [...] formbuilder.org
Cool, glad you find FormBuilder so useful. Non \w+ fields are generally a bad idea. FormBuilder attempts to support them, but ultimately, due to the fact that databases and all programming languages (including Javascript) look for \w+, any fixes will be extremely low-priority. If you can provide a patch, I'll gladly integrate it. Joining the mailing list is another good idea. Cheers, Nate
rt.cpan.org sucks glowing donkey balls. As it says in the CGI::FormBuilder documentation, there is NO REASON to EVER use this "tool", and by TOOL I mean cheap imitation of genitalia. All hope of problem resolution will be lost unless the problem and/or patch is provided to the mailing list, as stated in the documentation and website. -Nate