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
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.
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