How to match entered Referral Code with Users collection "referral_code" field

Database & APIs

I have Referral Code page where I want to verify that Entered Referral Code is Matches with the users collection "referral_code" field of any of the user or not.

If matches then navigate to home page.
If didn't matches then give error message.

I know that how to add navigation and snack bar but My main problem is I don't know how to verify referral code

What have you tried so far?

I have added conditional action on the verify button. In that I have added single condition. But I don't know how to do it.

Do I need to first query a "users" collection or what ?
Please guide me.

Did you check FlutterFlow's Documentation for this topic?
No
4 replies