Filter a list of collection with userID

I have a collection that holds answers to a form. When a user is logged in and fills the form, there is a list that shows the filled form (as a user can fill the same form over and over again with different input). Now on the page that shows the list of answers to the different filled forms, I need that list to only show for the logged-in user.

Example: I sign into the app and I fill out the form 6 different times. Another user (David) signs into the app and fill out the form 10 different times. The listview page where I query the (form answer collection) should only show for me not for me and David.

I think filtering the collection with userID is the solution or what else can I do?

1
3 replies