# 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**](/building-options/step-2-create-option-sets.md)
{% endhint %}

<figure><img src="/files/Kq69l18CaGqzV69ekcXh" 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="/files/bF7Kh9DHxkE0vq16bj6M" alt=""><figcaption></figcaption></figure>

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

* Navigate to **Advanced Settings**

<figure><img src="/files/5mreE3laZaWTn0ME4CTu" alt=""><figcaption></figcaption></figure>

* Check **Not allow deselect**

<figure><img src="/files/XjpMMuKePCYtM0icywHi" alt=""><figcaption></figcaption></figure>

#### Step 3: Save the Option

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

<figure><img src="/files/ZlHgW9wkyvcJfcHt8pqR" alt=""><figcaption></figcaption></figure>

***

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


---

# 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://options-docs-v2.avisplus.io/storefront-display/not-allow-deselect-option-value.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.
