Thanks again. I’m trying to modify the example code but still not having success. I know that I’m still missing pieces. I created a basic form and I’m trying to get the input info from the form into my contacts. I did create two unique columns in contacts for house number and street name. I then want to manually approve their membership. This is what I have so far…
$w.onReady( function () {
$w(‘#button1’).onClick( () => {
// register as member using form data
wixUsers.register($w(‘#input5’).value, $w(‘#input6’).value, {
“contactInfo”: {
“firstName”: $w(‘#input1’).value,
“lastName”: $w(‘#input2’).value,
“houseNumber”: $w(‘#input3’).value,
“streetAddress”: $w(‘#input4’).value,
“emails”: [$w(‘#input5’).value],
}
});
.then( (result) => {
let status = result.status; // “Pending”
let approvalToken = result.approvalToken;
let user = result.user;
});
});
});
