Hi guys. Have the same problem and cannot solve it: required data is shown in the text input field, but data is not submitted to the collection when the button is pressed. PLease advise what do I do wrong.
import wixUsers from 'wix-users';
import wixData from 'wix-data';
let user = wixUsers.currentUser;
let userId = user.id;
user.getEmail()
.then( (email) => {
let userEmail = email;
wixData.query("Members/PublicData")
.eq("_id", userId)
.find()
.then((results) => {
console.log(results)
let items = results.items;
let lN = items[0].nickname;
$w('#input6').value = lN;
$w('#input8').value = userEmail; //this data is not submitted
});
});