Skip to main content

How to Use Ignore Empty Constraints

Sofia Maconi avatar
Written by Sofia Maconi
Updated over a month ago

Transcript

In this Quick Tip, we're going to learn about ignoring empty constraints.

Here, we have a repeating group that is searching for users with a constraint where Name contains Input A's value—and notice we have Ignore empty constraints turned off.

If we preview this, by default our repeating group won't show any results because we haven't typed anything into Input A.

When we type in what we're searching for, then it'll appear in the repeating group.

But if we go back to our repeating group data source and we change the search to Ignore empty constraints, when we preview this again, our repeating group will show all of the values returned from our Do a Search For—without relying on the input value, since we are ignoring it if it's empty.

We can still use it to search for the names all the same, but now the default behavior is more user-friendly.

You'll find yourself needing to ignore empty constraints often—like when filtering by multiple things.


So experiment with this as you build more complex searches with multiple constraints.

That's it for this Quick Tip! For more, be sure to check out bubble.io/academy.

Did this answer your question?