Check if an element exists in a list

I am struggling with a small thing on bubble.
I want the user to log in with his phone and first check if a user already has this phone number. I tried search for user, each item’s phone contains my input and it doesn’t seem to work.
Here is a screen of the test I run to display yes if it exists and no if it doesn’t exist.
The system allways says no even if a user already has the phone number
Thanks a lot for your help

What type of field is the phone number and what is the format you are checking?
also I assume you have a privacy rule set up for the users ?

Just a quick tip, it’s better to do a search directly in the database by doing search for users with a specific field search rather than doing search for users:each items contains.

1 Like