Hi I used the code below for my custom registration form and notice that the "Phone" field wont write back to the CRM. Can someone please assist me with this?
import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
// ...
$w.onReady(function(){
$w('#register').onClick(function (){
let email = $w('#email').value;
let password = $w('#password').value;
let firstName = $w('#firstName').value;
let lastName = $w('#lastName').value;
let phone = $w('phone').value;
wixUsers.register(email, password, { contactInfo: { "firstName": firstName, "lastName": lastName, "phone": phone } } ) .then(()=>{ wixLocation.to('/my-account'); } ) }) })
Hi @paven6996 ,
Can you share the solution? So in case other users run into the same problem they can use your answer.
I have managed to fix this.