inputEx - RadioField Usage

Basic RadioField creation

Use the following code to create a basic inputEx RadioField.

Differentiate choices' labels and values

Use the following code to create choices with labels different from values

Updated event

How to listen to the updated event :

Styling RadioField

Display the choices vertically, style currently selected choice...

allowAny option

The "allowAny" option adds a radio associated to a StringField to let the user enter any value.

Advanced allowAny option

More options with allowAny (separators, default value, validator, etc.)

Advanced allowAny option 2

Use a custom field in allowAny

Disable RadioField

Disable the field (to disable radio inputs individually, see another example below)

addChoice

Add choices dynamically

removeChoice

Remove choices dynamically

Hide / Show / Disable / Enable choice

Hide, show, disable or enable an choice in the selector, without removing it totally, and keeping the original choice's order

Note : disableChoice and enableChoice methods have no effect with IE < 8 because it did not support disabled="disabled" attribute.