I’ve noticed something slightly odd, and I’m not sure if it’s a bug, or if it’s just the way Bubble works, so I though I’d ask here…
I’m working on a search feature and applying some filters to a list of data to display in a repeating group, and using the ‘Contains’ constraint to filter the data.
I’ve notice that when I’m using this constraint on a filed that is a single entry, the filtered results will display things in which the specified filed contains the data entered in the constraint…
For example, if I use ‘First Name’ contains ‘fran’, then things with firstnames such as ‘Frank’, ‘Francis’, ‘Francesca’ etc. will be displayed, as they all contain the constraint value.
However, if the field in question is a list (i.e. a list of texts), then the ‘contains’ constraint only shows items that match entirely.
For example, if filtering based on a field which is a list of texts, if I use ‘Tags’ contains ‘design’, I would expect to see things with ‘tags’ including things like ‘UX Design’, ‘Graphic Design’, ‘Web Design’ etc.
But I’m not. In this case I’m only seeing things which match exactly ‘design’ so would have to filter for ‘Ux Design’ to see those tags specifically.
It seems strange to me why the same constraint should work differently on a field depending on whether it’s a single entry or a list, so was wondering if it’s a bug - or just the way Bubble handles and filters lists.
Anyone has any thoughts or experience of this?