[radio] – Radio

[radio name="your_radio"]
Option 1
Option 2
[/radio]


Radio field.

Attributes:

AttributeExamplesDescription
name*name="unique_field_name"The field name. Needs to be unique in the form.
Required.
valuevalue="Option 2"
value="2"
The initial checked option.
Note: The value needs to match with the option value, so if you define an option like "2|Option 2", to check this option you need to set the value as value="2".
Optional.
inlineinline="no"
inline="yes"
Decides if options should be displayed inline.
Default: no.
If set to "no", options will be displayed as:
Option 1 Option 2
If set to "yes", options will be displayed as:
Option 1
Option 2
Optional.
CONTENT*[radio]Option 1[/radio]
[radio]1|Option 1[/radio]
[radio]
Option 1
Option 2
[/radio]

[radio]
1|Option 1
2|Option 2
[/radio]
The content inside the BBCode will be used as the field options.
Options can be defined as "Text" or "Value|Text". When options are defined as "Text" the internal value will be the option text itself. When options are defined as "Value|Text" the internal value will be the "Value" part of the option and the option will be displayed as the "Text" part.
Example: An option defined as "2|Option 2" will store the value "2" and show the text "Option 2".
Required.

This field also supports common HTML attributes, as well as label & description attributes.