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

From SmartWiki
Jump to: navigation, search
Line 1: Line 1:
 
[[SmartSimple]] does not support a '''Select One - Radio button''' type field but you can use a check box field to re-create this type of functionality.
 
[[SmartSimple]] does not support a '''Select One - Radio button''' type field but you can use a check box field to re-create this type of functionality.
 
   
 
   
1. Create a [[Custom Field|custom field]]:  [[Custom Field Type (20): Select Many – Check Boxes|Select Many - Check Box]].
+
1. Create a [[Custom Field|custom field]]:  [[Custom Field Type: Select Many – Check Boxes|Select Many - Check Box]].
  
 
2. Add this following code to the '''HTML''' tag setting:
 
2. Add this following code to the '''HTML''' tag setting:

Revision as of 17:56, 15 April 2009

SmartSimple does not support a Select One - Radio button type field but you can use a check box field to re-create this type of functionality.

1. Create a custom field: Select Many - Check Box.

2. Add this following code to the HTML tag setting:

onclick="onlyonechecked(this)"

3. Save the field.

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