Self-check in page

Hi, I’m making a self-check in page. I have created a database filled with Name, Phone Number and Attendance Status.

User would be able to fill in their name and phone number and click on “Mark as Attend” button. If the inputted data match with the one stored in DB, then their Attendance Status will change.

I have no problem changing the attendance status, but how do I make the “Mark as Attend” button scan the database to check whether the phone number correspond to the correct name, vice versa?

If the phone number and name are fields on the user data type, just do :current users phone number is mark as attend users phone

hi! the phone number is not a field on user data type and I made that on purpose. Would it be possible for bubble to log in but scan different data type other than user?

Yes, just make the other data types related in some way