Miscellaneous
radioButtonTag()
Signature
Section titled “Signature”radioButtonTag() — returns any
Description
Section titled “Description”Builds and returns a string containing a radio button form control based on the supplied name. Note: Pass any additional arguments like class, rel, and id, and the generated tag will also include those values as HTML attributes.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | See documentation for textFieldTag. |
value | string | yes | — | See documentation for textFieldTag. |
checked | boolean | yes | false | Whether or not to check the radio button by default. |
label | string | yes | — | See documentation for textField. |
labelPlacement | string | yes | around | See documentation for textField. |
prepend | string | yes | — | See documentation for textField. |
append | string | yes | — | See documentation for textField. |
prependToLabel | string | yes | — | See documentation for textField. |
appendToLabel | string | yes | — | See documentation for textField. |
Examples
Section titled “Examples”<!--- Basic usage usually involves a `label`, `name`, `value`, and `checked` value ---> <cfoutput> <fieldset> <legend>Gender</legend> #radioButtonTag(name="gender", value="m", label="Male", checked=true)#<br> #radioButtonTag(name="gender", value="f", label="Female")# </fieldset> </cfoutput>