header-logo
Getting started with WixBuild your website and business with Wix. Try using our AI tools to create your website, customize templates, or hire professionals to build or enhance your online presence.
Creating a websiteRead how to use the Wix Editor and manage content on your site. Discover how to protect your visitors' privacy and make your site accessible.
Account & billingReview your account settings, manage your subscriptions and plans and understand your invoices.
Using the Wix mobile appsUse our mobile apps to run your business efficiently on the go and set up a dedicated app for your site members to stay in touch.
Connecting a domainFollow our step-by step guides to learn how to purchase, connect or transfer a domain for your site, and find out how to keep your site’s data secure.
Managing your businessGet tools to grow your business and web presence. Find the right tools for your specific needs, set up online payments and keep track of your site's analytics.
Promoting your siteLearn to make your site more visible promoting it on search engines, sending emails and running paid ads. Improve your online presence with practical tips.
Studio, Partners & EnterpriseGet the most out of your Studio or Enterprise account with advanced features that'll help you work more efficiently.
Need more help?Find solutions for site performance and technical issues, learn about issues we’re working to fix or contact us for help.
placeholder-preview-image
Wix LearnImprove your skills with our courses and tutorials.
Wix BlogGet tips for web design, marketing and more.
SEO Learning HubLearn to increase organic site traffic from search engines.
Website developmentBuild a custom site using our full-stack platform.
Hire a ProfessionalGet 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

Feature Request|We are collecting votes for this issue
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. 
  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.