Title: Two optional checkboxes, only one allowed
Last modified: July 28, 2024

---

# Two optional checkboxes, only one allowed

 *  Resolved [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/two-optional-checkboxes-only-one-allowed/)
 * Where there are two checkboxes, and a minimum of 0 and a maximum of 1 can be 
   checked, is there any setting where if checkbox A is selected, but then the user
   decides to select checkbox B, then checkbox A is automatically de-selected? At
   present, the use must manually de-select checkbox A before selecting checkbox
   B.
 * This is the current setting:
 * ![](https://i0.wp.com/snipboard.io/al3CFA.jpg?ssl=1)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftwo-optional-checkboxes-only-one-allowed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/two-optional-checkboxes-only-one-allowed/#post-17917523)
 * Hello [@pidengmor](https://wordpress.org/support/users/pidengmor/)
 * Thank you very much for using our plugin. You’re describing the Radio Button 
   behavior. Please use a radio button field instead of a checkbox.
 * Best regards.
 *  Thread Starter [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/two-optional-checkboxes-only-one-allowed/#post-17917644)
 * That makes sense. Many thanks for the clarification.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/two-optional-checkboxes-only-one-allowed/#post-17918409)
 * Hello [@pidengmor](https://wordpress.org/support/users/pidengmor/)
 * We released a plugin update some minutes ago that modifies the checkbox fields
   to apply the same radio button behavior when it allows to check only one choice
   at once.
 * Best regards.
 *  Thread Starter [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/two-optional-checkboxes-only-one-allowed/#post-17918651)
 * That is fantastic. Thank you. It works perfectly.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Two optional checkboxes, only one allowed’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [checkboxes](https://wordpress.org/support/topic-tag/checkboxes/)

 * 4 replies
 * 2 participants
 * Last reply from: [barnez](https://wordpress.org/support/users/pidengmor/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/two-optional-checkboxes-only-one-allowed/#post-17918651)
 * Status: resolved