Difference between revisions of "Join Option Box vs Button"
From TMM Wiki
Jump to navigationJump to searchm |
TmmStephen (talk | contribs) |
||
Line 19: | Line 19: | ||
'''New: Radio Buttons''' | '''New: Radio Buttons''' | ||
<pre> | <pre> | ||
− | {html_radios name="signup[optionid]" options=$join_options selected=$ | + | {html_radios name="signup[optionid]" options=$join_options selected=$join_optionids.0 separator="<br>"} |
</pre> | </pre> | ||
+ | |||
+ | The $join_optionids.0 variable will set the selected radio button to the first option listed. | ||
[[Category:Also NATS4 Article]] | [[Category:Also NATS4 Article]] |
Revision as of 13:37, 14 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
{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.