Hi guys! I’ve made this custom member registration and it’s working well, I can get all the other data (First Name and “cpf”) but not phone number. I can’t understand why it’s happening since the other data is getting stored, but phone isn’t. I already lost 1500+ new members contact info 
import wixUsers from 'wix-users';
//import wixLocation from 'wix-location';
import wixWindow from 'wix-window';
$w.onReady(function () {
$w("#registrar").onClick( (event) => {
$w('#loadingGIF').show();
let email = $w("#email").value;
let password = $w("#senha").value;
let name = $w("#nome").value;
let first = $w("#nome").value;
let cpf = $w("#cpf").value;
let phone = $w("#phone").value;
wixUsers.register(email, password, {
contactInfo: {
"firstName": $w('#nome').value,
"cpf": $w('#cpf').value,
"phone": $w('#phone').value
}
} )
.then( (result) => {
let resultStatus = result.status;
wixWindow.lightbox.close();
$w('#loadingGIF').hide();
$w('#box14').show();
//wixWindow.openLightbox("Inscrito");
//wixLocation.to("/inscricao-realizada");
} )
.catch( (err) => {
console.log(err);
$w('#deuruimm').expand();
$w('#loadingGIF').hide();
});
});
That’s my website member registration page
That’s a test I did (CPF is a custom field added)
Note that emails and phones are actually stored in an array and are not simply strings.
Try changing it to this
"phones": [phone]
https://www.wix.com/corvid/new-reference/wix-users/register
I tried but it always give Bad Request in monitoring :(((
Here’s What I tried
let email = $w("#email").value;
let password = $w("#senha").value;
let name = $w("#nome").value;
let first = $w("#nome").value;
let cpf = $w("#cpf").value;
let phones = $w("#phone").value;
wixUsers.register(email, password, {
contactInfo: {
"firstName": $w('#nome').value,
"cpf": $w('#cpf').value,
"phones": phones,
let email = $w("#email").value;
let password = $w("#senha").value;
let name = $w("#nome").value;
let first = $w("#nome").value;
let cpf = $w("#cpf").value;
let phone = $w("#phone").value;
wixUsers.register(email, password, {
contactInfo: {
"firstName": $w('#nome').value,
"cpf": $w('#cpf').value,
phones: phone,
let email = $w("#email").value;
let password = $w("#senha").value;
let name = $w("#nome").value;
let first = $w("#nome").value;
let cpf = $w("#cpf").value;
let phone = $w("#phone").value;
wixUsers.register(email, password, {
contactInfo: {
"firstName": $w('#nome').value,
"cpf": $w('#cpf').value,
phones: $w("#phone").value,
The bad requests are my tests
Yes my bad 
I mentioned to you that the phones and emails are stored in an array and I forgot to put the array into the code I gave you, it should be like this here
"phones": [phone]
Simply change the one line to this and it will work fine for you now.
I have edited my code above as well in case others read it.
Although, with your code I suggest that you change the lightbox close function to after the loading gif is hidden and box14 is shown and add a timeout to it as well so that it has time to show box 14 before closing the lightbox.
So your code should be like this below and you can see it working on this test site here - https://givemeawhisky.wixsite.com/phonenumber
If you test the website, just add random things for it all as it is set up to be approved immediately, so don’t add any real info etc.
I have taken out the first name as I don’t think that you need name and first name.
As for the cpf, you can easily add your cpf lines back in so that it works with your setup and your custom cpf field.
I left it out as I just wasn’t sure if it would be a number or text value etc.
import wixUsers from 'wix-users';
//import wixLocation from 'wix-location';
import wixWindow from 'wix-window';
$w.onReady(function () {
$w("#registrar").onClick((event) => {
$w('#loadingGIF').show();
let email = $w("#email").value;
let password = $w("#senha").value;
let name = $w("#nome").value;
let phone = $w("#phone").value;
wixUsers.register(email, password, {
contactInfo: {
"firstName": $w('#nome').value,
"phones": [phone]
}
})
.then((result) => {
let resultStatus = result.status;
$w('#loadingGIF').hide();
$w('#box14').show();
setTimeout(function () { wixWindow.lightbox.close() }, 3000);
//wixWindow.openLightbox("Inscrito");
//wixLocation.to("/inscricao-realizada");
})
.catch((err) => {
console.log(err);
$w('#deuruimm').expand();
$w('#loadingGIF').hide();
});
});
});
Here is what you should be getting once it is correctly done.