Skip Menu |

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

Report information
The Basics
Id: 79185
Status: new
Priority: 0/
Queue: CGI-FormBuilder

People
Owner: Nobody in particular
Requestors: violapiratejunky [...] gmail.com
Cc:
AdminCc:

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



Subject: datetime field not working
Whenever you choose a field and make it of type datetime or datetime_local, the page has an internal server error and gives this error: [FormBuilder] Fatal: No message string found for 'js_invalid_datetime' (keys: charset form_confirm_text form_grow_default form_invalid_checkbox form_invalid_default form_invalid_file form_invalid_hidden form_invalid_input form_invalid_password form_invalid_radio form_invalid_select form_invalid_text form_invalid_textarea form_other_default form_required_text form_reset_default form_select_default form_submit_default js_invalid_checkbox js_invalid_date js_invalid_datetime-local js_invalid_default js_invalid_email js_invalid_end js_invalid_file js_invalid_input js_invalid_multiple js_invalid_number js_invalid_password js_invalid_radio js_invalid_select js_invalid_start js_invalid_textarea js_invalid_time js_invalid_url js_noscript lang mail_confirm_subject mail_confirm_text mail_results_subject) at /Library/Perl/5.12/CGI/FormBuilder/Field.pm line 529. It works for date, however. I am running perl v5.12.4, Mac OS Mountain Lion, and using CGI::FormBuilder 3.08.
Subject: test.pl
#!/usr/bin/perl use CGI::FormBuilder; @fields = qw(date); $form = CGI::FormBuilder->new( fields => \@fields, ); $form->field(name=>'date',type=>'datetime'); if ($form->submitted && $form->validate) { # you would write code here to act on the form data print $form->confirm(header => 1); } else { print $form->render(header => 1); }