User email auto fill but cannot save to database

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
})
});

anyone help Pls

I have the same issue, did you find the solution to this already? Please let me know. TIA

@brustangel1225 never mind, found the solution here :slight_smile:
https://www.wix.com/corvid/forum/community-discussion/solved-prepopulated-fields-are-not-saving-to-database