guides:o4w:o4w_api:o4wradiobutton

O4WRadioButton routine

Creates a radio button which will return a value when the button is selected.

O4WRadioButton(text, value, name, id, style)

The function has the following parameters:

ParameterDescription
textThe label for the radio button.
valueThe value for the button within the radio group.
nameIdentifies the radio group; all buttons that should work together should have the same name.
idIf specified, the control can be addressed through style sheets individually.
styleIf 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.

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.

  • guides/o4w/o4w_api/o4wradiobutton.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1