Hi everyone!
I’m trying to build a registration system in FlutterFlow where users can enter a pre-assigned ID, and the system will check if the ID exists in a Firestore collection (preregistered_users
). If the ID is found, the user should be redirected to a registration screen with their details (name, other two values) pre-filled from the Firestore document.
Here’s what I’ve done so far:
Created a Firestore collection
preregistered_users
with fields:id
,name
,grade
,school
.Added a screen with a
TextField
for ID input and a button to trigger the Firestore query.
However, I’m stuck on:
How to pass the retrieved data to the registration screen and pre-fill the form fields.
How to handle cases where the ID doesn’t exist in Firestore.
How to retrieve values from the firestore document
Could someone guide me step-by-step on how to achieve this? Any tutorials, examples, or code snippets would be greatly appreciated!
Thanks in advance!