[html-formfu] GIving name to element of radiogroup

Jason Kohles email at jasonkohles.com
Tue Oct 30 19:21:23 GMT 2007


On Oct 30, 2007, at 2:54 PM, kewei xiao wrote:

> Hi Carl
>
>   I am trying to give a name to each radio buttons in a radiogroup,  
> but so far the name is still not assigned to each radio button, here  
> is what I do:
>   $self->options( [ map { {
>       name => 'copyright',
>       label => $_->description,
>       value => $_->status_id }
>   } $status->all ] );
>
>   return $self;
>
>  Am I doing right?
>
The name will be the name of the radiogroup, you don't set it for  
individual radio buttons because all of them having the same name is  
how the browser knows they are a group.

-- 
Jason Kohles, RHCA RHCDS RHCE
email at jasonkohles.com - http://www.jasonkohles.com/
"A witty saying proves nothing."  -- Voltaire





More information about the HTML-FormFu mailing list