# Not allow deselect option value

When this feature is activated:

* Customers can switch between option values
* Customers **cannot deselect** the currently selected value
* One option value will always remain selected

This helps prevent accidental unselection and ensures required input is always provided.

## I. **Available options**

This feature works only with **single-selection** option types:

* Color swatch
* Image swatch
* Radio button
* Button

> ⚠️ This feature does **not** apply to multi-select options (e.g. checkboxes).

***

{% hint style="info" %}

### Demo :You can view a live demo here: 👉 <https://avis-demo.avisplus.io/products/not-allow-deselect>

{% endhint %}

***

## II. How to Activate

#### Step 1: Create an Option

* Create a new option or edit an existing one

{% hint style="info" %}
[**How to create an option set**](https://options-docs-v2.avisplus.io/building-options/step-2-create-option-sets)
{% endhint %}

<figure><img src="https://3264408981-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ClFZbSMFYUfUOKXAOru%2Fuploads%2F6406Tsfc2nsrA44my0r6%2Fimage.png?alt=media&#x26;token=2dd51c52-9f57-44af-aeb1-3c33e962b142" alt=""><figcaption></figcaption></figure>

Choose any option type listed in **I. Available options** to set up. In this example, we selected **Single selection - Button.**

<figure><img src="https://3264408981-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ClFZbSMFYUfUOKXAOru%2Fuploads%2FMWe5CyhxqTXwbi33m8WE%2Fimage.png?alt=media&#x26;token=6d62fdad-6162-4822-9587-5bc670dfe324" alt=""><figcaption></figcaption></figure>

#### Step 2: Enable “Not Allow Deselect”

* Navigate to **Advanced Settings**

<figure><img src="https://3264408981-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ClFZbSMFYUfUOKXAOru%2Fuploads%2FIGMSaFuHitMKEfDszGHa%2Fimage.png?alt=media&#x26;token=1a85fe08-b727-4b60-a971-4e3924a4fbfc" alt=""><figcaption></figcaption></figure>

* Check **Not allow deselect**

<figure><img src="https://3264408981-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ClFZbSMFYUfUOKXAOru%2Fuploads%2FPnofBz8ztpHZ9GxH8Jur%2Fimage.png?alt=media&#x26;token=0e19d916-d9b7-44fb-9c3e-da45cbefe2e3" alt=""><figcaption></figcaption></figure>

#### Step 3: Save the Option

* Click **Save**
* The feature will be applied immediately to the product page

<figure><img src="https://3264408981-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ClFZbSMFYUfUOKXAOru%2Fuploads%2FmJA3dbFxfAumB2N3ZIfQ%2Fimage.png?alt=media&#x26;token=05b6cb9b-86a9-4421-8d84-83598b289b3e" alt=""><figcaption></figcaption></figure>

***

If you have questions or need help setting this up, feel free to reach out to our support team.
