Hi there,
I would like to link my submit button on my members sign up for to the “landing page” where they must land on next. This is a members only page on my site.
I would still like the sign up data to be captured as well.
I found this code in a previous thread but I am getting this error.
Loading the code for the Custom Signup page. To debug this code, open i4qrp.js in your browser’s Developer Tools.
import wixUsers from ‘wix-users’ ;
import wixWindow from ‘wix-window’ ;
import wixLocation from ‘wix-location’ ;
$w . onReady ( function () {
$w ( ‘#button3’ ). onClick ( ( event ) => {
let email = $w ( “#input2” ). value ;
let password = $w ( “#input1” ). value ;
let address = $w ( “#container2” ). value ;
let first = $w ( “#input4” ). value ;
let last = $w ( “#input3” ). value ;
wixUsers . register ( email , password , address , {
contactInfo : {
“#input4” : $w ( ‘#input4’ ). value ,
“#input3” : $w ( ‘#input3’ ). value ,
}
} )
. then ( ( result ) => {
let resultStatus = result . status ;
wixWindow . lightbox . close ();
wixLocation . to ( “/Welcome-page/” );
} );
} );
});
This was working however it is no longer working?
Please help