Custom Membership Register-Create Custom Fields Database

Good evening,

I hope everyone’s family is safe and well in this hard time.

I have created a custom sign up form on my Wix site, but I’m still not seeing any of my custom fields I have entered into the form. Below I have pasted my code used to hopefully get the “Number,” “Position,” “Type,” along with the other normal fields (First Name, Last Name, Email). Please help!

import wixUsers from ‘wix-users’ ;

$w.onReady( function () {
$w( ‘#button2’ ).onClick( () => {
let emails = ;
let firstname = ;
let lastname = ;
let number = ;
let position = ;
let type = ;

emails.push($w( '#input2' ).value); 
firstname.push($w( '#input4' ).value); 
lastname.push($w( '#input3' ).value); 
number.push($w( '#input5' ).value); 
type.push($w( '#dropdown2' ).value); 
position.push($w( '#dropdown1' ).value); 

// register as member using form data
wixUsers.register($w( ‘#input2’ ).value, $w( ‘#input1’ ).value, {
“contactInfo” : {
“firstName” : $w( ‘#input4’ ).value,
“lastName” : $w( ‘#input3’ ).value,
“Email” : $w( ‘#input2’ ).value,
“Number” : $w( ‘#input5’ ).value,
“Position” : $w( ‘#dropdown1’ ).value,
“Type” : $w( ‘#dropdown2’ ).value,

  } 
}); 

});
});

Would love any help even if it’s not specific to the code above!