You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Justin Harrison <ju...@astyrrian.com> on 2003/07/30 00:12:59 UTC
Radio buttons and Embperl Validate
Hi,
I am using Embperl Validation for form fields. One field has a set of radio
buttons, all with the same name, but different values. I'd like to ensure
that at least one of them is clicked. I am using this data structure for it:
[-key => 'data',
-name => 'information type',
-msg => 'Please select the type of information you remember.',
required =>'1',
],
But the corresponding javascript for it does not seem to be correct. Is
there some way to specify a group of radio buttons like that which I am
missing?
I also tried to use the "Email" type in another validation form, but the
error I received stated that it could not find Embperl::Form::Email (with a
capital M, as stated in the docuemntation at
http://perl.apache.org/embperl/pod/doc/EmbperlFormValidate.-page-4-.htm#sect
_7 - Damn Outlook keeps changing the M to lower case!). Is it called
something else, or just not in this build?
Thanks!
Justin
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Radio buttons and Embperl Validate
Posted by Gerald Richter <ri...@ecos.de>.
>
> I am using Embperl Validation for form fields. One field has a set of radio
> buttons, all with the same name, but different values. I'd like to ensure
> that at least one of them is clicked. I am using this data structure for
> it:
>
> [-key => 'data',
> -name => 'information type',
> -msg => 'Please select the type of information you remember.',
> required =>'1',
> ],
>
> But the corresponding javascript for it does not seem to be correct. Is
> there some way to specify a group of radio buttons like that which I am
> missing?
>
There is currently no JavaSCript included for validating Radio Buttons. It's
on my TODO list. In case you have some JS code that does the job I am happy
to include it in the Embperl distribution.
> I also tried to use the "Email" type in another validation form, but the
> error I received stated that it could not find Embperl::Form::Email (with a
> capital M, as stated in the docuemntation at
> http://perl.apache.org/embperl/pod/doc/EmbperlFormValidate.-page-4-.htm#sec
>t _7 - Damn Outlook keeps changing the M to lower case!). Is it called
> something else, or just not in this build?
>
I have missed to put the Embperl/Form/Validate/EMail.pm in the 2.0b9 realase.
YOu can grab it from the CVS.
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org