@boston85719 Two things:
You can create a field within a data type, where the field type IS an option set (choice) or list of option set (choices). Your option set will appear in the list of field types. Bubble doesn’t really distinguish between your option sets and other data types, but they’ll be there.
You can create expressions that treat the option set as an object. In your example, you were able to do “This product’s category is category selected” where “category” referred to one of your Category data types, right? You can still do that with option sets…
For example, say you have an option set called “Product Categories” with options for:
And, in your Product data type, you’d need a field - let’s call it “Type” - with its field type set to this “Product Category” option set.
If you have a dropdown for the user to filter products by category, set it up to display the option set choices and the expression in a repeating group data source could be:
Search for Products, where Type = Dropdown’s value. Just like you would with the data types!
Or a condition in the RG cells:
When “Current cell’s product’s Type is Music” > change icon to a musical note (or something)
^^ although, in that case, I’d actually create a custom attribute under the Option set for image to upload different icons per choice and then dynamically display “This product’s type’s icon” in an image element
Hopefully that shows you how to achieve the same structure as you did previously with data types. But, if I misunderstood you, please let me know!
Coaching No Code Apps
Join our Facebook group for insider access to no-code development
Get professional development services
Enroll in expert-led courses and products