Storing Data in Database from Submit/Registration Button

Hello all,

I have created a custom registration page where I manually approve members. I also want to use the submit button to store data from user inputs into a “members” database. My code for member registration is below, but what would I have to add in order to add the custom user input fields into a database. My inputs are: number, type, position. My database is: Members.

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;
wixUsers.register(email,password)
.then(()=>{
wixLocation.to( ‘/thankyou’ );
})
})
})

Hi,
the default Wix members database is read-only. See here .

The only way to have custom registration fields is to build your own members’ area as shown here .