# Enforcing selection of one checkbox from a group [duplicate]

Suppose I have a collection of 3 checkboxes with the restriction you can only have one box checked at anytime. If a box is already checked and the user checks a different box how can automatically uncheck the previous box?

• I'd say it is a task for RadioButtonBar but you can use the second argument of Dynamic inside your Checboxes to manage events. – Kuba Apr 20 '17 at 18:10
• 141239, 105953, 133647 the second one looks like the answer, doesn't it? – Kuba Apr 20 '17 at 18:18
• @Kuba These are great too, thanks! Your RadioButtonBar is also a very simple solution. – Wintermute Apr 20 '17 at 18:26