Hi,
If I have a survey on my site (a User Input form) and I like it to automatically write the member info to my database together with the user's input, how can I do it? (I don't want to ask the users to fill in their info again, I just want to use extract the CurrentUser info from wix-users and write it to the database once the users click submit.)
Thank you,
J.D.
#wixUsers , #UserInput , #automatically , #submit , #CurrentUser
let user = wixUsers.currentUser; let userId = user.id; var userEmail;
user.getEmail() .then( (email) => { userEmail = email; console.log(userEmail); // "user@something.com" } );
when You have userEmail you can now save it in dataset