#404 #failure #customRegistration #wixUsers
Hi guys,
I'm trying to setup a custom registration form and I end up getting an unknown failure (404) error whenever I submit the form (Both Preview and Live Modes)
This is the Dev panel:
This is my code:
function createMember() {
let label = "Seller";
wixUsers.register($w("#email").value, $w("#password").value, {
"contactInfo": {
"firstName": $w("#firstName").value,
"lastName": $w("#lastName").value,
"agencyName": $w("#agency").value,
"labels": label
}
} )
.then( (result) => {
let status = result.status;
reDirect(status);
} )
.catch( (err) => {
console.log(err);
$w("#signUpError").show();
} );
}
This is my Custom Field:
These are my labels:
Am I doing something wrong or is this a bug?
-Shan
@shan
Create a new field name in the the CRM and call it "agencyName2"
then...
"agencyName2": $w("#agency").value