(SOLVED) Get current data value based on current user login.

I got this code use to get the CURRENT login user based on the members/PrivateMembersData collection. I also created mymembers collection.
when a user registered I also attached a code where it will also saved to mymembers collection.
Given both collection has the same data value except “school” because members/PrivateMembersData doesn’t have school field.

If I already have the value of the current login user, how do i call the data from “mymembers” based on the login current user?

How to load “mymembers” data collection? Based on current user login?

       //storing data to a variable from collection field 
      let  f_name = firstName; 
       let  l_name = lastName 
       let  mySchool = school 

       //display data to a textbox based from variables created above 
      $w("#inputfirstName").value  = f_name; 
      $w("#inputlastName").value  = l_name; 
      $w("#inputSchool").value  = mySchool; 

The reason why I made other data collection because I can’t let a user to enter school field upon registering. Please help anyone. Thank you so much

See your previous post.
https://www.wix.com/corvid/forum/community-discussion/how-do-i-call-retrieve-some-data-base-on-user-logged-in

The Wix Members app collection is read only.
https://support.wix.com/en/article/corvid-wix-members-privatemembersdata-collection-fields

Hello good sir, I saw you reply to my other question. I see good thing I created my own database which is called “mymembers”, upon registering the data will also saved to “mymembers” collection and to members/PrivateMembersData, then on “mymembers” collection is where all the update and display data will happen. Basically it will become my primary members data base to which i have the control to manipulate it but, i just dont know how :frowning: been reading corvid tutorials for days now :frowning:

I got it.
Thanks to this Thread: https://www.wix.com/corvid/forum/community-discussion/solved-get-any-data-from-wixusers

Yehey!!!

This code will display the data on the input textboxes of the current user who logged in the website. Using your custom made collection.