Add

Lorem ipsum

Lorem ipsum

A
A
A
CMS & Logic

6 views

4 min

How to Display Conditional Content in Webflow CMS

Learn how to display conditional content in Webflow CMS based on your field values: Switch, text, Option, and reference.

In this tutorial, Sandro, co-founder of the Gemeos Webflow agency, shows you how to display conditional content in your Webflow CMS collections based on field values.

Condition typeCMS fieldExample
Active/inactive boolean fieldSwitchShow a "New" badge
Non-empty textPlain TextShow a section if the description is filled in
Selected optionOptionShow the color based on the category
Linked referenceReferenceShow an author if one is set

1. Use Webflow’s native conditions

In your Collection List Template, select the element you want to show conditionally. In the Settings panel > Conditional Visibility, set the condition based on a CMS field. Examples: show a badge if the "is_new" field is enabled, hide a section if the "description" field is empty.

2. Conditions for Switch fields (booleans)

Switch fields are the simplest option for conditional content. Create a Switch field in your CMS (for example: "Featured", "Premium", "New"). In the Designer, apply Conditional Visibility to the element: "Show when [field] is On".

3. Conditions for text fields

To show an element only if a text field is filled in, use the "is not empty" condition. This is useful for optional fields like a quote, a video, or a short description.

4. Conditions for Option fields (enum)

Option fields let you create more granular conditions. Example: show a red badge if the value is "Urgent", orange if it's "Normal". Create several elements with different conditions on the same Option field.

good to know

Webflow conditions are evaluated when the site is published, not in real time. If you change a CMS field value, the update won’t appear until you republish. For truly dynamic content, content that changes without republishing, you’ll need to use the Webflow API and client-side JavaScript.

Conclusion

Conditional content keeps you from building multiple templates for small variations. Use cases:

  • "New" or "Popular" badge on product cards
  • Author section shown only when filled in
  • Strikethrough price shown only when a promo is active

Good to know

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet consectetur.

Lorem ipsum dolor sit amet consectetur. Aliquam orci sagittis dignissim sapien praesent donec.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Published on

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...