Difference between revisions of "Join Option Box vs Button"
From TMM Wiki
Jump to navigationJump to searchTmmStephen (talk | contribs) |
TmmStephen (talk | contribs) |
||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
− | '''New: Radio Buttons''' | + | '''New: Radio Buttons'''<br> |
+ | For Nats 4 | ||
<pre> | <pre> | ||
{html_radios name="signup[optionid]" options=$join_options selected=$join_optionids.0 separator="<br>"} | {html_radios name="signup[optionid]" options=$join_options selected=$join_optionids.0 separator="<br>"} | ||
Line 23: | Line 24: | ||
The $join_optionids.0 variable will set the selected radio button to the first option listed. | The $join_optionids.0 variable will set the selected radio button to the first option listed. | ||
+ | |||
+ | For Nats 3 | ||
+ | <pre> | ||
+ | {html_radios name="signup[optionid]" options=$join_options selected=$vars.optionid separator="<br>"} | ||
+ | </pre> | ||
[[Category:Also NATS4 Article]] | [[Category:Also NATS4 Article]] |
Revision as of 13:15, 15 April 2009
NATS 3
|
---|
You can display radio buttons instead of a select box on the join option section of the Join Form. Go to Sites Admin, click the Edit Site Templates icon, and replace the old code with the new code, below, in the template:
Old: Select Box
<select name="signup[optionid]" class="join_select"> {html_options options=$join_options selected=$vars.optionid} </select>
New: Radio Buttons
For Nats 4
{html_radios name="signup[optionid]" options=$join_options selected=$join_optionids.0 separator="<br>"}
The $join_optionids.0 variable will set the selected radio button to the first option listed.
For Nats 3
{html_radios name="signup[optionid]" options=$join_options selected=$vars.optionid separator="<br>"}