Created new yes/no field but cannot handle empty field scenario

I created a new field “active” that takes yes or no. I want to make some element condition so that if active is yes make it visible. However, I currently have users that have empty active field because this is a new field. I want those users with empty for active to be visible as well. I cannot find a way to search if active is empty. I recall being able see if value is yes/no or empty in other scenarios.

Screenshot 2024-07-17 001354

Hi! An empty field is generally calculated as no in Bubble. You can accordingly add your conditions

1 Like

@Zeroic thanks for the insight. For future reference, is there any data types that would allow empty field and able to detect it?

You can evaluate whether a field of any type is empty. In the case of Bubble’s yes/no field type, empty is equivalent to no.

If you need to be able to distinguish further, use an option set with values for true, false, and null.

1 Like

Ideal fix, thanks @davidb

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.