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

Filter products in a repeating group by data type with Custom States

In this Bubble tutorial video we demonstrate how to filter results in a repeating group using 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!
Filter products in a repeating group by data type with Custom States
Explore these topics...
Database
Custom States
Workflow
Set state
Repeating Group

With just this tutorial learn...

Master custom states and option sets: Learn how to filter products by color and category in this advanced Bubble tutorial.

Unlock the power of data types: Discover how to use categories as a flexible data type for future-proof product filtering.

Merge multiple filters: See how to combine color and category filters for powerful product sorting capabilities.

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.

Introduction to Custom States and Option Sets

This video is a continuation on from a previous video where we looked at how to use custom states and option sets to filter products. So I've got option sets as my colors and by clicking I can toggle between and filter down my products and my product page here.

Using Data Types for Categories

This video is going to concentrate on how we can do a similar thing but without using option sets. This time we're going to use a data type and that data type is category and that's how we're going to group together whether it's a t-shirt or whether they're trousers or pants.

Understanding the Data Structure

So if we just have a look at my data so that we're all on the same page, quick reminder in option sets I've got my colors and colors make a good option set because I want to dictate that from the back end. I'm unlikely to need to add a color on the front end whereas categories I might want to add in the future for people to add different categories different types of clothes on the front end so I'm using it as a data type and then within products has got a field of type category labeled category and color with the option set colors.

Setting Up the Repeating Group

Let's go on to our front end here and to make this really quick we're just going to duplicate the repeating group we used for colors and let's add a bit of margin onto the top and then set up our data sources. So this is going to be a data source category and then I want it to list all the categories that I've got in my database.

Updating Data Types

Oh and because I've changed the data type I need to update it here. There you go, easy mistake to make it still thinks that they're colors and category label. Okay there we go and now let's set up our custom state.

Setting Up Custom States for Categories

So we're going to be using the same location keeps it simple as our custom state for colors so this time it's going to be category. It's going to be a type category and then we do a very similar custom state flow to add in a custom state. I like using the colors if it's going to add data I use green if it's going to remove it I use red say category to current selves category and then we need to add the condition.

Conditional Statements for Custom States

You go you add the data in or you remove the data but we're using the same group as a button to do that so that's why we add in this conditional statement so when category is not to count selves category then we set it and let's duplicate that and this is going to be removing the data so that we can clear it out and make that blank.

Testing the Setup

Let's just see if that works in practice. I need to update my conditional statement on my icons so when is category is parent groups category fine right that should work now you just viewed these a couple of instances where when you copy and paste stuff and change some parts it doesn't always translate across well and can you remove it yeah you can remove the check.

Applying Filters to the Repeating Group

Okay how do we apply that to our repeating group so at the moment I have it set up that the repeating group shows all products no constraints but then when a filter of color is applied so this custom state isn't empty I update the data source now that works but it's not going to work well if I'm trying to filter it by two different like parameters so instead of using conditional statement I'm going to move that over to here and say filter by color color equals and then find my custom state show color and let me just show you what that does right now.

Handling Empty Constraints

So my custom state is empty and so my repeating group is empty because there is no color but if I check this box here ignore empty constraints color is going to be empty until I check a box but that's ignored and so I can do a similar thing with category category equals filter container and then yeah ignore constraints let's see how this works.

Final Results and Conclusion

So color is back to how I expect and now so is my categories so that works but it wants to go red doesn't work because there are no red trousers so there you have it there is a quick overview of how we've used option sets in the past for colors how we've used a new data type category for categories and how we've used custom states to filter a repeating group and in fact how we've been able to merge two filters together so that we can filter by both color and by clothing category.

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
How to Build Your Own SEO Tool Without Coding!
Stream AI Generated Text into Bubble Repeating Group & Save to Database
Rerank Text By MEANING With Cohere In Bubble.io Step by Step!
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