Hakeem Oloritun
Hakeem Oloritun

Reputation: 11

Best way to discern between two items on Bubble.io

So on my bubble site I am trying to find the best way for the Bubble.io to know when an item is a product or a service. If it is a service, I would need Bubble.io to present either a button or a whole new page for it. Please let me know the best way to do this or if you have a link/article please share it!

Upvotes: 0

Views: 128

Answers (2)

Abdul Mueez
Abdul Mueez

Reputation: 1

Assuming you have an item table, create an option set named type with two options and add a field in DB named type and it's type should be the option set. Now each item can either be product or service. Now create both UI elements and add conditionals to show them on the basis of that option set.

Upvotes: 0

Vu Tran
Vu Tran

Reputation: 11

I think the best way should be to set up a product_type field in the database and create conditional displays for your front-end elements.

In detail, you should create the front-end for both product and service types. You hide the front-end elements for products when it's a service and vice versa.

Upvotes: 0

Related Questions