Accessing info from one dataset to populate another

Hello, I am creating a site that has login required and member profiles being setup by each user.

I then want members to be able to submit data and that data to be displayed to the community as a whole.

I am able to create a new form and submit the info to the database for this new community generated content but what I would like to do is attach who uploaded the content (their name, email, and profile photo) to this new data they are submitting.

In review, a member who has created a profile will then submit content for the community to enjoy and I would like to display their name and picture and other info pulled from their profile and display it all in a nice repeating element.

How can I pull the logged in users info in their profile that they have already created to populate some of the info needed for the new dataset?

Please ask for clarity if needed. And I very much appreciate the help.

Hi,

You can use wixUsers module to get info about the logged in user.
Then, use wixData.query to read from your database according to the current logged in user.

Liran.