# CMS Request: Limiting the Selection Tags Input Element to One Selection Only

Source: https://support.wix.com/en/article/cms-request-limiting-the-selection-tags-input-element-to-one-selection-only (updated 2026-11-10)
Status: feature request, collecting votes
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Currently, it is not possible to set the [Selection Tags input element](https://support.wix.com/en/article/cms-adding-and-setting-up-selection-tags) to only accept one selection from the list of choices. In this element, visitors can select multiple options from the available choices.

![A screenshot of a selection tags element on a live site with several duration options selected.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/11/09/38553dce-03a9-4ae9-aaa2-c7db5e2b5198/1e44fb0c-522f-469a-a1b0-769daf6ae8e3.png)

---

### Workaround

Using Velo, you can limit the Selection Tags input element to only allow visitors to choose one selection at a time.

**Wix Editor:**

1. [Go to your Editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Go to the page with the connected Selection Tags element.
3. Enable Velo Dev Mode:  
   1. Click **Dev Mode** at the top of the Editor.  
   2. Click **Turn on Dev Mode**.
4. Replace the gray text with the code below, after the first line: **$w.onReady(function () {**

```javascript
$w('#selectionTags1').onChange((event) => {
       const indeces = $w('#selectionTags1').selectedIndices;
       const singleIndex = indeces.slice(-1);
       $w('#selectionTags1').selectedIndices = singleIndex
   })
```

![A screenshot of the code panel with code that limits a selection tags element to one selection.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/12/12/17d6b87d-8aae-4e9e-bbfe-75a0ae90101c/e2b1a379-d138-4d5f-bf4e-0ff9dae0e469.png)

1. (If needed) Replace **selectionTags1** with the ID of your Selection Tags element. Click the relevant Selection Tags element to find its ID in the [Properties and Events panel](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/velo-workspace/properties-events-panel/working-with-the-properties-events-panel).  
**Note:** Do not remove the hashtag (**#**) or apostrophes (**'**) in the code.

**Studio Editor:**

1. [Go to your Editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Go to the page with the connected Selection Tags element.
3. Click the Code icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/12/12/6d8f2756-fab1-4911-98b5-d66edf68818e/ea744f9b-2177-476f-a151-18e6116c7884.png) on the left.
4. Click **Start Coding**.
5. Replace the gray text with the code below, after the first line: **$w.onReady(function () {**

```javascript
$w('#selectionTags1').onChange((event) => {
       const indeces = $w('#selectionTags1').selectedIndices;
       const singleIndex = indeces.slice(-1);
       $w('#selectionTags1').selectedIndices = singleIndex
   })
```

![A screenshot of the Studio Editor Page Code panel with code that limits a selection tags element to one selection.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/12/12/b3d8d692-582a-42f8-8531-2c9c2dbc0fd6/a8588cd3-e52d-44ec-9c78-0113476453a1.png)

1. (If needed) Replace **selectionTags1** with the ID of your Selection Tags element. Click the relevant Selection Tags element to find its ID in the [Properties and Events panel](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/velo-workspace/properties-events-panel/working-with-the-properties-events-panel).  
**Note:** Do not remove the hashtag (**#**) or apostrophes (**'**) in the code.

We are always working to update and improve our products, and your feedback is greatly appreciated.
