Learn Bubble with 500+ tutorials, courses & AI Assistant ✨

Limited time launch offer get $80 off today

0 days 0 hours 0 minutes 0 seconds
SAVE $80 NOW
Planet No Code logo
Bubble.io CoachingFounder MentoringSponsorships
LoginLearn Bubble.io

Creating custom toggles using custom states in Bubble.io

In this Bubble tutorial we demonstrates how to create your own custom toggles using Groups, Repeating Groups, Option Sets and Custom States.

Join now $19/monthLearn more
Get 500+ tutorials, a No-Code AI Assistant, 4 premium courses, and everything you need to build faster!
Creating custom toggles using custom states in Bubble.io
Explore these topics...
Design
Borders
Buttons
Conditional statement
Database
Custom States
Option Sets
Workflow
Set state

With just this tutorial learn...

Create custom toggles: Learn how to build interactive toggles using Bubble's powerful custom states feature.

Master temporary data storage: Discover the art of storing data temporarily with custom states, enhancing user experience without database writes.

Build dynamic UI elements: Unlock the potential of repeating groups and conditional statements to create responsive, user-friendly interfaces.

With membership you'll...

Learn how to build a ChatGPT Clone, Custom CRM for your business & SaaS Marketing website with Webflow & AI.

Unlock 500+ Bubble tutorial videos with AI powered Q&A.

Debug your Bubble app instantly with our custom trained No Code AI Assistant.

Join now $19/month
Risk-free! 14-day money-back guarantee. Cancel anytime.

Creating Custom Toggles in Bubble.io

Here's a quick Bubble tutorial video demonstrating how to create your own toggles using custom states. So I have an app set up here with a page and if I go into data you can see I have an option set called platforms and then I've got two options YouTube and Vimeo. Then on my page I have a repeating group of type content platforms my option set and then the data sources or platforms that's how I end up with a repeating group that shows you the two options I've created within my option set platforms.

Using Custom States for Temporary Data Storage

So what if I want to create these into buttons to allow a user to choose one or the other? So I can use a custom state for that. Now custom states are a great way of temporarily storing data. Nothing is being written to your database, nothing can be recalled if the page is refreshed, it's just a way of temporarily storing whether it's text or any data type or option set in your app while the user is on the same page.

Creating Custom States on Page Elements

So they can be created on any element but it makes sense to just create them somewhere logical so I'm going to create them on the page itself. So I will just say chosen platform and then I'm not going to use text because I want to really make use of the power of option sets so I'm going to choose platforms and then I want to only give the user the choice of picking one so I'm not ticking this as a list.

Setting Up Workflows for Custom Toggles

That then means I can create a workflow remember because this is a repeating group I'm not creating a workflow manually on every button I just need to do it on one and so my workflow can be when this is clicked I set state of my page chosen platform is current cell's platform. I'm then going to add in a conditional statement for the design to show that the this one is the selected one the chosen platform so I refer to my page custom state and say chosen platform is current cell's platform and then the visual feedback I'm going to give is changing the border color for the sake of this let's make it red.

Testing the Custom Toggle Functionality

So then if I click on it it becomes red and I click on it it that one becomes red. Now that works well for these two buttons here but what if I wanted to enable it so that if someone was to click on the chosen one it unselects it deselects it so I need to add another workflow for that and I'm going to end up with two different workflows each with an only when statement and I like to color code these to make them clear so if I am doing something positive if I'm adding in data I make it green and so I have a conditional statement here of my pages custom state chosen platform is not current cell's platform and then I'm going to copy and paste this and change this one to red and say when it is so this is if you're clicking on it and it that platform is in place then my custom state I want to remove the platform that's chosen so with a custom state that isn't a list I just leave it blank let's test that so I can still click YouTube I can still click Vimeo but then if I click Vimeo again it deselects it because it's running my red workflow.

Conclusion

There you have it a really quick overview of how to make your own custom toggles in Bubble using custom states.

Table of contents

Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Your No-Code Journey Starts Here

The best way to learn Bubble.io?

Build No Code Confidently

No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.

Find every solution in one place

No more searching across platforms for tutorials. Our bundle has everything you need, with 500+ videos covering every feature and technique.

Dive deep into every detail

Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.

Monthly
Yearly
Member
Accelerate your Bubble app to launch
$99 / month
$19/month/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now
Member
Accelerate your Bubble app to launch
$990 / year
$149/year/mo
Includes:
500+ tutorials
4 premium courses
Find the right tutorial with our custom trained AI
New tutorials added each week
Cancel anytime
14 day money back
Join now

Frequently Asked Questions

Find answers to common questions about our courses, tutorials & content.

Do I need any coding experience?

No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.

How does the AI No-Code Coach work?

Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.

How long can I access the content?

As long as you’re subscribed! With our monthly subscription, you get unlimited access to all 500+ videos, our growing course library, and the AI No-Code Coach.

What courses are included

Your subscription includes:

  • Bubble Beginner Essentials – Get up and running fast.
  • Build a ChatGPT Clone – Integrate AI into your no-code apps.
  • Build Your SaaS Website with AI – Learn to create a scalable startup site.
  • Develop a Custom CRM App in Bubble - Learn database relationships with a CRM.

Plus, new tutorials every week!

What if I get stuck on a lesson?

The AI No-Code Coach is your first stop for instant answers. If you need deeper help, you can book 1:1 Bubble coaching for expert guidance.

Do you offer a money-back guarantee?

Yes! If you don’t see real progress within 14 days, let us know, and we’ll issue a full refund—no questions asked.

Can I cancel anytime?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

What if I want more than just tutorials & courses?

Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.

If you’re serious about building a successful SaaS startup, check out Mastery—our intensive mentorship program. Mastery goes beyond Bubble.io development and includes:

  1. 1:1 mentorship to fast-track your progress
  2. Marketing strategies tailored for no-code founders‍
  3. Product management insights to scale your startup‍
  4. Personalized support from experienced founders

‍

Still have questions?

Reach out to our dedicated team.

Contact
Services
Search Bubble TutorialsBubble.io CoursesBook Bubble.io CoachingApply for Mastery
Latest Bubble tutorials
Rerank Text By MEANING With Cohere In Bubble.io Step by Step!
Unlock RAG Providers for NO CODE AI App Development TODAY!
Better Tables with Built-in Search and Sort By in Bubble.io
Partnerships
Flusk.eu
VectorShift
Comnoco
Plumb
Toddle
Whereby
Get started with no code
AI Powered No Code AppsNo Code Web ScrapingBubble.io Plugin tutorialsBubble API Connector tutorialsStudent & Teacher DiscountBest tools for no coders
Follow us
Youtube
X
LinkedIn
Planet No Code logo
In partnership with
Queen Mary University of London Logo
© 2024 Planet No Code. All rights reserved.
Privacy PolicyTerms of ServiceCookies SettingsContact Us