O4WRadioButton routine
Description
Creates a radio button which will return a value when the button is selected.
Syntax
O4WRadioButton(text, value, name, id, style)
Parameters
The function has the following parameters:
Parameter | Description | |
---|---|---|
text | The label for the radio button. | |
value | The value for the button within the radio group. | |
name | Identifies the radio group; all buttons that should work together should have the same name. | |
id | If specified, the control can be addressed through style sheets individually. | |
style | If specified, the style is applied to the text that is generated. Note that style may be either the name of a style (as created by one of the O4W style functions, or as defined in an included style sheet), or it can be the returned value from one of the O4W style functions. |
Remarks
Multiple radio buttons can be created at one time by having multiple text, value, and id fields. The data should be @VM delimited.
Use the O4WMarkedOptions "checked" flag to check (when set to "1") or uncheck (when set to "0") the checkbox as desired or the O4WMarkedOptions "currValue" parameter to explicitly enumerate which elements should be checked. You may also use the O4WHTMLOptions style to specify that the <text> parameter contains HTML instead of plain text.