On Monday, January 10, 2000 9:07 PM Brendan O'Brien wrote:

>I'm working on a form which has two separate groups of radio buttons. 
>At first, all the buttons acted like they were in the same group. I then 
>searched the archives and found a message stating you could organize 
>buttons into groups like this:

>  #First Group
>  $W->AddRadioButton(...);
>  $W->AddRadioButton(...);
>  $W->AddRadioButton(...);

>  #Second Group
>  $W->AddRadioButton(-group => 1, ...);
>  $W->AddRadioButton(-group => 1, ...);
>  $W->AddRadioButton(-group => 1, ...);

Try this:

#First Group
$W->AddRadioButton(-group => 1, ...);
$W->AddRadioButton(...);
$W->AddRadioButton(...);

#Second Group
$W->AddRadioButton(-group => 2, ...);
$W->AddRadioButton( ...);
$W->AddRadioButton( ...);

Setting the first RadioButton group key as 0 doesn't seem to work. Also, the
group key should only
be used once, at the beginning of each group.

John McNamara


Reply via email to