# How to have mandatory checkbox option

**URL:** <https://forums.concretecms.org/t/how-to-have-mandatory-checkbox-option/2006>\
**Category:** eCommerce\
**Created:** [December 22, 2021, 2:10pm UTC](https://forums.concretecms.org/t/how-to-have-mandatory-checkbox-option/2006 "2021-12-22T14:10:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cali](https://forums.concretecms.org/user_avatar/forums.concretecms.org/cali/32/742_2.png) [@cali](https://forums.concretecms.org/u/cali)\
**Post date:** [December 22, 2021, 2:10pm UTC](https://forums.concretecms.org/t/how-to-have-mandatory-checkbox-option/2006/1 "2021-12-22T14:10:02Z")

</div>

is there a way to have checkbox option mandatory, the kind of chaeckbox witch have to be checked to be able to add product in basket ?

---

<div class="post-metadata">

**Author:** ![mesuva](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mesuva/32/6303_2.png) [@mesuva](https://forums.concretecms.org/u/mesuva)\
**Post date:** [December 22, 2021, 3:16pm UTC](https://forums.concretecms.org/t/how-to-have-mandatory-checkbox-option/2006/2 "2021-12-22T15:16:13Z")

</div>

There’s an option on products to add a checkbox, but that option type can’t be set as required. But that prevents an option like ‘I accept that this product may explode’, where someone has to check it before adding to the cart.

So I’ve pushed up an update to allow for this:

> <https://github.com/concrete5-community-store/community_store/commit/2d22b00e3573f53d2295cf04ebf85e71485d6a10>

It’ll make its way into the next release, but it’s small enough for you to manually make that edit for now.

---

<div class="post-metadata">

**Author:** ![cali](https://forums.concretecms.org/user_avatar/forums.concretecms.org/cali/32/742_2.png) [@cali](https://forums.concretecms.org/u/cali)\
**Post date:** [December 28, 2021, 2:21pm UTC](https://forums.concretecms.org/t/how-to-have-mandatory-checkbox-option/2006/3 "2021-12-28T14:21:15Z")

</div>

so nice, thanks a lot 🙂
