Changes

Jump to: navigation, search

Allowing Only One Check Box to be Selected

167 bytes added, 20:55, 4 June 2009
no edit summary
[[SmartSimple]] does not support have a '''Select One - Radio button''' field 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: Select Many – Check Boxes|Select Many - Check Box]].
2. Add To prevent a user from selecting more than one Check Box for the associated [[Custom Field]], add this following code to the '''HTMLTag''' tag settingsection of the [[Custom Field]]:  onclick="onlyonechecked(this)"  This can be used for: * [[Custom Field Type: Select Many – Check Boxes|Select Many - Check Box]]::and * [[Custom Field Type:Select Many – Scrolling Check Box|Select Many - Scrolling Check Box]]
onclick="onlyonechecked(this)"
3. Save the field.
The [[User|user]] will not be able to select more than a single check box with this code in place.
[[Category: Custom Fields]][[Category:JavaScript Examples]]
0
edits

Navigation menu