/bubble-tutorials

How to build comparison lists in Bubble

Learn how to build dynamic comparison lists in Bubble with simple steps that improve user experience and boost your app’s functionality.

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 build comparison lists in Bubble

The simplest way to build comparison lists in Bubble is to store each item’s attributes in the database (as fields) and then use Repeating Groups to display multiple items side‑by‑side. You load the same list of Things into multiple vertical Repeating Groups (one per attribute) or use a single horizontal Repeating Group with an inner vertical Repeating Group. You’re not doing any special Bubble feature called “comparison,” you’re just structuring your data so Bubble can visually compare items.

 

How to Structure the Data

 

Bubble can only compare things easily when each item has consistent fields. So create a data type like Product (or whatever you compare) and give it fields such as:

  • Name (text)
  • Price (number)
  • Rating (number)
  • Features (list of texts)

Every Product has the same fields. That lets you line them up visually.

 

Building the Comparison View

 

  • Place a Repeating Group and set layout to horizontal. This RG represents the items being compared.
  • Data source: Search for Products with filters (for example, only products the user selected).
  • Inside each cell, place normal text elements for Name, Price, etc.
  • For lists like Features, add a nested vertical Repeating Group for that product’s Features.

This creates a standard comparison table: columns = items, rows = attributes.

 

Dynamic “Select Items to Compare”

 

  • Create a field on the User called Comparing List (list of Products).
  • When the user clicks “Add to Compare,” run a workflow: Make changes to Current User → Comparing List add Current Product.
  • Set the comparison RG’s data source to Current User’s Comparing List.

 

Optional: Highlight Differences

 

You can compare values using Conditionals inside text elements. For example:

  • In Price text → Conditional: When Current cell’s Product’s Price is not Current Page Product’s Price → change background color.

This uses Bubble’s conditional tab; no code needed.

 

// Example search for the comparison RG
Search for Products 
  // filtered by user selection

 

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