I have a standard Bubble sign in/logon page. After a user logs on, I want to take him to his Organization page. Let’s say that Organization has a members field, which is a list of users’ emails.
So after the logon action, I add the action: Go to Page and set the destination to Organization. For Data to Send, I need to pass a reference to an Organization. So I choose, Do a Search For. Up until now, I think I’m OK. But at this point I get confused.
Now I have the Data to Send field, but I also have a new dialog, called Do a Search For. I think they are the same thing, so in the new dialog, under Type, I choose Organization. This gets filled into the Data to Send field too. Great. Now do I add a new constraint in the new dialog, or click More in the first dialog? Or is it the same thing again?
I want to find the organization that has an entry in its list of members (which is a list of email addresses) that matches the email address of this user, who I guess is now the Current User.
Search for Organization’s Member’s email contains Current User’s email
Search for Organization’s Members contains Current User
and a few other possibilities, but nothing worked. The criteria remained red.
So…should I be entering criteria in the second dialog? And either way, what is the right search string? Or am I going about this all wrong?