> For the complete documentation index, see [llms.txt](https://docs.optis.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optis.me/product-options/advanced-setup/make-the-option-required-before-adding-to-cart.md).

# Make the option required before adding to cart

This feature ensures that customers must select an option before they can add the product to their cart.

#### **Steps:**

1. In the **Option set edit** page, locate the element you want to make mandatory.
2. Under the **Option label**, find and enable the "**Required field**" checkbox.
3. Click **Save** to apply the changes.

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FIxoD9NFvgF12fNRmYBc5%2FScreenshot%20(5).png?alt=media&amp;token=64a6fdcb-3d46-449e-98fa-8c4b41eff4b5" alt=""><figcaption></figcaption></figure>

**Result:**&#x20;

* Required options will display a **red asterisk (\*)** next to the option name on the storefront.
* If a customer clicks Add to cart without making a selection, a warning message will appear to prompt them.

<figure><img src="https://1821185975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRFiuDpHWm2HwzxPH4lfM%2Fuploads%2FhAcDT1urxcfYMrZyj6Yu%2FScreenshot%20(6).png?alt=media&amp;token=3eeac80f-f8a8-4170-861d-f6c3224ae511" alt=""><figcaption></figcaption></figure>
