Sub Options - The list of Options for the radio buttons. Use the green + to add more, the red - to remove Options and the grey boxes on the right to drag and drop to change the order.
NOTE: Options can be programmatically added to this list Using eval Populate on the Advanced tab.
Value - The value that is stored in the database if the drop down option is selected.
Label - The label that appears next to the drop down option. Equally this label is shown in the table view rather than the recorded value (which is stored in the database table itself)
Default - is the option selected as default
Options per row - Specify the number of columns used to render the radio buttons. A smaller number will place the Options FARTHER apart. If you have short Options, then choosing a number like 8 would help move the Options closer together without as much whitespace between them.
Button group - Renders the Options as a Bootstrap 'button group' vs. the traditional html radio buttons (a button group is similar to the No/Yes choice of button group).
BUTTON GROUP NOTES:
If you use Javascript events, you have to use a click event (and not the change event).
Front End Addition
Allow user to add drop down option - Allow your form's users to add in additional Options to your form.
Only add label - If no selected then the user has to enter both a value and a label for the checkbox option they are adding. If yes selected then only a label field is presented to the user the value of which is then used for the value and label.
Save new additions - If yes selected then the newly submitted option is stored by the element, meaning subsequent users of the form will be able to select the same value.
Advanced Options
Eval Populate - PHP that can generate a list of Options to add to list added using JHTML.
See also the dropdown element
For example, here is some code that will build a list of years from the current year and the previous 10 years.
Note: There is no way to specify a default selected option using this method.
Additional data
Sometimes, when editing a record, you may see sub-options appearing that are not listed in the element's admin page. This is because the current record has values that are not found in the sub-options. This could occur because:
Data was entered manually into the database
Data previously entered from a radio sub option that has been subsequently deleted
The user has been allowed (possibly at some point) to add their own options but not set to store that added option as a option available to other users.
With Fabrik we work on the principle of trying to be as lenient as possible with the data stored/displayed. If someone has entered it in, we will try to to produce processes where it will be not removed.