Difference between revisions of "Allowing Only One Check Box to be Selected"

From SmartWiki
Jump to: navigation, search
Line 2: Line 2:
  
 
  onclick="onlyonechecked(this)"
 
  onclick="onlyonechecked(this)"
 +
 +
'''NOTE: It is normally better to use a [[Combo Box]] custom field with ''Show as Radio Buttons'' selected'''
  
  

Revision as of 19:18, 6 November 2013

To prevent a user from selecting more than one Check Box for the associated Custom Field, add this code to the HTML Tag section of the Custom Field:

onclick="onlyonechecked(this)"

NOTE: It is normally better to use a Combo Box custom field with Show as Radio Buttons selected


This can be used for:

and

The user will not be able to select more than a single check box with this code in place.

For a Select One - Combo Box field, the "Show as Radio Buttons" option can be selected to display the field selections as "radio buttons."

Note