Retrieving data from Firestore

Database & APIs

I have a form to create new patients. It's going to a collection "new_patients" and once saved, creates a document which has the patient's name. Each document has fields such as name, age, diagnose and other things. This is working.

Now I need to retrieve all the patient's name into a Dropdown menu, which I did and I can see all the names created. However once I select a name, I should go to another page where I can see all the fields I said above. That's where the problems start! There must be something wrong while passing data.

What have you tried so far?

I was able to make it, however regardless the name, it returns only the data (all fields are loaded) from the first Document.

When I define the parameters, I use DocumentReference and when I need to set this parameter, I only get the options as shown in the picture.

Did you check FlutterFlow's Documentation for this topic?
Yes
2 replies