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