Collapsable Conditional Expression

Hi there Bubblers,

I’m pretty sure a lot of you have some long conditional expressions in your apps. Sometimes it gets annoying having to read 5 long conditionals to remember what they’re there for.

In my app, users can upload an image and use it more than once. Kind of like an album on Spotify. The users can also delete these images.

I don’t want them to be able to delete an image that is being used by at least one data thing. The conditional expression below helps me achieve that. That’s just one of the many long conditionals I have in my app.

My idea is to have the option to give the conditional expressions a title (or short description) and the ability to collapse the actual expression.

Reading the short title helps me remember MUCH quicker than reading the entire expression.

Collapsed Expression:

Revealing Expression:

Would anyone else like to see this implemented?

Cheers :slight_smile:

2 Likes

Gotta bump this one because, it would be so convenient!

I won’t vouch for this. I want to see the entire expression when I open the element, without having to expand each part individually. While this might seem convenient for a single condition, it becomes cumbersome with multiple conditions involved. It feels like unnecessary extra work.
Especially if you will be able to expand only 1 at the time.

Tittles/Comments might be a good idea.

I understand your point of view, but I would rather click expand 1 time over scrolling past 5-10 long conditionals. It’s mostly for organization.

Perhaps Bubble could have it as an optional feature so that you can disable it if it’s not the right tool for you. Or an expand all button!