Hi everyone,
I’m facing an issue while trying to add a constraint in a Do a search for query in Bubble. Here’s the setup:
- I have a
Check-Intable with a field calledsub_habit_fk, which is a link to theSub-Habittable. - The
Sub-Habittable has astatusfield (Yes/No). - I want to add a constraint in my repeating group that only fetches
Check-Inentries where the relatedSub-Habithasstatus = yes.
Currently, I have a repeating group where the data source is Do a search for Check-In. I’ve already set up some basic constraints like user = Current User and time period = Morning, but I’m struggling to add a constraint for the Sub-Habit's status.
I tried selecting sub_habit_fk in the constraints section, but it only gives me operators like =, is in, etc., and doesn’t allow me to directly access the status field of the related Sub-Habit. When using ‘=’ after the FK field in constraint, I tried different logics, but it gives me an error that it does not accept lists.
Any guidance on how to properly add a constraint where Check-In -> sub_habit_fk -> status is "yes" would be greatly appreciated!