header-logo
Learn how to use Wix to build your site and business.
Design and manage your site using intuitive Wix features.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image

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

Collecting votes
Currently, it is not possible to set the Selection Tags input element to only accept one selection from the list of choices. In this element, visitors can select multiple options from the available choices. 

Workaround

Using Velo, you can limit the Selection Tags input element to only allow visitors to choose one selection at a time. 
Wix Editor
Studio Editor
  1. Go to your Editor.
  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 () { 
1$w('#selectionTags1').onChange((event) => {
2       const indeces = $w('#selectionTags1').selectedIndices;
3       const singleIndex = indeces.slice(-1);
4       $w('#selectionTags1').selectedIndices = singleIndex
5   })
  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.
    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.