Forum OpenACS Q&A: Re: Checked radio.

Collapse
2: Re: Checked radio. (response to 1)
Posted by Dave Bauer on
Hi,

You should not set the value in the element delcaration.

You should set the value in the

-on_request or -new_request or -edit_request code blocks.

To do that you should set the variable named for the form element to the correct value.

In your case something like this:

-on_request {
set RB "2"
}

This will check whatever option has the value of "2".

Collapse
3: Re: Checked radio. (response to 2)
Posted by Jorge Couchet on
Hi Dave!

Thanks, it works perfectly!

Regards,

Jorge.