i use a code to let member inside the form they email will auto fill in to the input box.
the problem is the email can auto fill but cannot save to database.
i already link all the input box to the database but only the email one cant save.
here is the code:
import wixUsers from ‘wix-users’;
$w.onReady( function () {
let user = wixUsers.currentUser;
let userId = user.id;
let isLoggedIn = user.loggedIn;
let userRole = user.role;
user.getEmail()
.then((email) => {
let userEmail = email; // “user@something.com”
$w(“#input3”).value = userEmail
})
});