# How to Make Color Swatches Required Before Adding to Cart

You can require customers to select a swatch before adding a product to their cart. \
\
There are two ways to do this, depending on how you want the swatches to behave.

### Option 1: Single Selection (Always One Selected)

If you turn **Allow Multiple Selections** to **No**, the swatches behave like radio buttons.

* One swatch is automatically selected when the page loads
* Customers cannot remove the selection
* They can only change it

This setup guarantees that one option is always chosen.

![](/files/26EjbQk3oCtmjeZskwoe)

This is best if customers must choose exactly one option.

### Option 2: Customer Must Click to Choose

If you turn **Allow Multiple Selections** to **Yes** and set the field to **Required**, the swatches behave like checkboxes.

* No swatch is selected when the page loads
* Customers must click on at least one swatch before adding to the cart
* You can set minimum and maximum selection limits

![](/files/yK9U9j2Bq2CBZxSPiHEE)

By default:

* Minimum selections = 1
* No maximum limit

You can adjust these in the advanced settings if needed.

### Want to Change How Swatches Look?

If you’d like to adjust how your swatches display — such as size, shape, borders, or layout — visit:

[**Style Your Swatch Options**](/infinite-options/inputs-and-field-settings/create-swatches/how-to-make-swatches-required.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shoppad.gitbook.io/infinite-options/managing-your-options/make-swatches-required.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
