Does the "Conditional visibility" feature in Webflow only work for CMS collections?

Published on
September 22, 2023

Does the "Conditional visibility" feature in Webflow only work for CMS collections?

No, the "Conditional visibility" feature in Webflow can be used on both regular elements and elements within CMS collections. This powerful feature allows you to control when an element is displayed on your website based on certain conditions. Here's how it works:

  1. Setting up conditional visibility for regular elements:
  • Select the element you want to apply conditional visibility to.
  • In the Styles panel, click on the settings icon next to the "Display" property.
  • Choose "Add Conditional Visibility" from the drop-down menu.
  • Define the condition by selecting a property, a comparison operator, and a value. For example, you can show an element only if a certain data item is selected in a dropdown menu.
  • Customize the visibility options for when the condition is true or false. You can choose to hide, show, or affect the element's layout when the condition is met.
  1. Using conditional visibility with CMS collections:
  • When working with CMS collections, you can apply conditional visibility to elements within collection items.
  • Select the collection list or collection item wrapper that contains the elements you want to conditionally show or hide.
  • Follow the same steps mentioned above to set up conditional visibility.
  • Conditions can be based on CMS fields and their values. For example, you can show a specific image only if its "featured" field is set to "true" in the CMS.
  1. Additional tips and considerations:
  • You can stack multiple conditions together to create more complex visibility rules.
  • Conditional visibility can be set on any type of element in Webflow, including divs, images, text, buttons, etc.
  • It can be helpful for creating dynamic and personalized experiences on your website.
  • Remember to preview and test your conditional visibility rules to ensure they function as expected.

By using the "Conditional visibility" feature in Webflow, you have the flexibility to control the visibility of elements based on various conditions, whether they are part of CMS collections or regular elements.

Additional Questions:

  1. How can I apply conditional visibility to multiple elements simultaneously in Webflow?
  2. Can I combine conditional visibility with interactions in Webflow?
  3. Is conditional visibility available for Webflow's responsive design breakpoints?