/bubble-tutorials

How to use conditional visibility in Bubble

Learn how to use conditional visibility in Bubble to show or hide elements dynamically and improve UX with simple, effective logic.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.

Book a Free Consultation

How to use conditional visibility in Bubble

In Bubble, you use conditional visibility by turning an element’s visibility on or off based on a condition you define in the element’s Conditional tab. Bubble doesn’t “hide/show” with workflow logic — instead, you tell the element when it should be visible, and Bubble handles it automatically.

 

How Conditional Visibility Works

 

Every visual element in Bubble has two places for visibility control: the Layout tab and the Conditional tab. In Layout, you decide if the element is visible by default and whether it should collapse when hidden. In Conditional, you add rules like “When Current User is logged in → This element is visible.” The rule becomes true or false at runtime, and Bubble updates visibility instantly.

  • Visible on page load (Layout) = starting visibility.
  • Collapse when hidden (Layout) = removes empty space when hidden.
  • Condition (Conditional tab) = defines when visibility should override the default.

 

Step-by-Step Example

 

Let’s say you want a group to show only when the user is logged in.

  • Click the Group → open the Layout tab.
  • Uncheck Visible on page load if you want it hidden by default.
  • Check Collapse when hidden if you don’t want empty space.
  • Go to the Conditional tab → click Add a condition.
  • Set the expression to: Current User is logged in.
  • Enable the property This element is visible.

 

// This is the Bubble condition expression (not code you execute)
When Current User is logged in
    This element is visible = yes

 

Tips That Avoid Common Mistakes

 

  • Conditions override the default state, not the other way around.
  • You must check the box next to "This element is visible" inside the condition, or nothing will happen.
  • If something stays visible, check if another condition is also turning it on.
  • If spacing looks weird, verify Collapse when hidden is checked for groups.

 

That’s the entire system: set a default visibility, then use the Conditional tab to tell Bubble when the element should appear or disappear.

Explore More Valuable No-Code Resources

How to integrate Bubble.io with Git?

Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.

Explore

How to integrate Bubble.io with Reddit Ads?

Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!

Explore

How to integrate Bubble.io with AWS S3?

Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.

Explore

How to integrate Bubble.io with Lucidchart?

Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.

Explore

How to integrate Bubble.io with Kentico?

Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.

Explore

How to integrate Bubble.io with Box?

Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.

Explore

Stuck in Bubble.io? We’re here to help!

Fix broken workflows | Optimize logic | Boost performance | Scale with confidence

4.9
Clutch rating 🌟
600+
Happy partners
17+
Countries served
190+
Team members

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Cookie preferences