How do I add a switch field to a Webflow Collection?
Add a Yes or No switch to a Webflow Collection, then use it to filter, sort, or show a label on items.
In Collection settings, click New Field and choose Switch. The value is only Yes or No, and a new switch starts at No. Name it for the uncommon Yes, such as Featured, and turn it on for those items only. A Collection list can filter with Is On or Is Off, or sort with Is On first so featured items lead and the rest stay.
Add a switch in Collection settings
A switch stores one of two values: Yes or No. Webflow's switch article describes it as a filtering tool. Collaborators toggle it on an item, for example to mark a blog post as featured. The same field can filter a Collection list, sort a list, or drive conditional visibility on an element in a list or on a Collection page.
Open Collection settings for the Collection that needs the flag. Click New Field and choose Switch. You can add the field to a new Collection or to one you already have.
The default value is No. Webflow says to label the field with a question that is No in most cases, so you only switch it on for the few Yes answers. If you want to hide a few posts out of a hundred, name the field Hidden rather than Shown. Hidden stays off for the rest, and you flip it for the exceptions. Featured works the same way when only some posts should be featured. Non-profit, and Is on sale, are the other patterns the article lists.
A switch is only the yes or no flag. A category name belongs in a different field.
Turn it on only for the Yes items
Open a Collection item and set the switch to Yes or No. New items stay at No until you change them. Save the item after you flip it. A featured post that is still No will not pass an Is On filter, even if the headline says featured in the title.
Example: a Blog Collection gets a switch named Featured. Leave it off on ordinary posts. Turn it on for the two posts that should appear in the homepage row. You do not create a second Collection for that row. The flag on the item is the difference.
Do the same for a Hidden switch if a few drafts should drop out of the public list while they remain in the Collection. Off means visible in that design, because the default No is the common case. On means the exception. Publish the items after the toggles are set.
Filter the list to On or Off
A filter decides which items appear. Select the Collection list. Open the Settings panel with D. Add a filter under Collection list settings. Choose the switch in the first dropdown, choose Is On in the second, and save.
Webflow's switch article lists two rules. Is On finds items where the switch is on. Is Off finds items where it is off. A homepage row of featured posts uses Is On. A list that should skip hidden posts uses Is Off on the Hidden field, so only the default No items remain.
Items that fail the filter stay in the Collection. They are only absent from that list. A second list can show everything, with no filter, while the homepage list stays on Is On.
Example: 40 posts, 3 with Featured set to Yes. The homepage list filters to Is On and shows those 3. If the homepage is empty, check the toggle before you add another field. A filter cannot feature a post that is still No.
Sort so the Yes items lead
A sort changes order and does not remove items. Use it when every post should remain and the featured ones should come first.
Select the list. Open the Settings panel. Add a sort under Collection list settings. Choose the switch, choose Is On first or Is Off first, and save. Is On first puts the Yes items ahead of the No items. Is Off first does the reverse.
The rest of the list is still there. If you also want the newest post first among the items that share a switch value, add that date sort as its own rule. The switch rule has to be the first rule if it should decide the top of the list. A filter of Is On is the wrong tool for this layout, because it would drop the posts you meant to keep below the featured ones.
Example: the blog index shows every published post, with featured posts at the top. Sort by Featured, Is On first. Do not add an Is On filter on that same list. The homepage can keep the filter. The index keeps the sort.
Show a label when the switch is On
A label is not a filter. The card stays in the list, and only the label comes and goes. Webflow's switch article uses this for a Featured label that shows when a Featured switch is on, and for a section that shows when a switch such as Show contact form is on.
The element has to sit inside a Collection list or on a Collection page. Webflow's conditionals article says to select it, open Element settings, click the purple dot, and choose Create conditional. Choose the switch. Switch values support Is On or Is Off. Set the match to Visible and the fallback to Hidden.
Example: each blog card has a small Featured label. Create the conditional on that label, rule Is On, Visible when it matches, Hidden when it does not. A post with the switch off still shows its title. It has no label. You do not add a second label for the off state.
Publish the items and the page. The homepage filter should list only the Yes items. The index should list the rest as well, with Yes items first if you sorted that way. The label should be absent wherever the switch is off.
If the label is missing on a post you marked Yes, the conditional is on the wrong element, or the rule is Is Off. If every card shows the label, the label has no conditional and is ordinary text. Select the label, add the conditional, publish, and reload.
Questions & answers
The new switch is already off on every item. Is that a bug?
No. Webflow says the default value is No. Turn it to Yes only on the items that should match, such as the posts you want to feature.
I want to hide 4 posts out of 100. What should I name the field?
Name it for the rare answer. Webflow's example is Hidden rather than Shown, so the default No stays correct and you flip only the four exceptions.
Featured posts lead the list, but the other posts vanished. Why?
A filter of Is On removes items that are off. To keep every post and only change the order, use a sort of Is On first instead of a filter.
The Featured label shows on a post where the switch is off. What should I check?
The label needs a conditional on that switch, with Visible when the rule is On and Hidden when it is not. A style on the label does not read the field.
Sources & further reading
Need a hand with your Webflow site?
View membership
View membership