Please i am not getting any errors but form is not submitting. can any one help


import wixUsers from ‘wix-users’ ;
import wixLocation from ‘wix-location’ ;

$w.onReady( function () {
$w( “#memberAccount” ).onAfterSave( () => {
if (wixUsers.currentUser.loggedIn) {
const userId = wixUsers.currentUser.id;

        wixUsers.emailUser( "S6bBmUT" , userId, { 
                variables: { 
                    firstname: $w( "#nameInput" ).value, 
                    lastname: $w( "#lastName" ).value, 
                    Address1: $w( "#address1" ).value, 
                    Address2: $w( "#address2" ).value, 
                    City: $w( "#input12" ).value, 
                    State: $w( "#state" ).value, 
                    Country: $w( "#countryDropdown" ).value, 
                    Zipcode: $w( "#zipcode" ).value, 
                    PhoneNo: $w( "#phoneNo" ).value, 
                    Checkbox1: $w( "#accountCheckbox" ).value, 
                    Checkbox2: $w( "#checkboxGroup2" ).value, 
                    Checkbox3: $w( "#checkboxGroup3" ).value, 
                    UploadButton: $w( "#uploadButton1" ).value, 
                    TextBox1: $w( "#textBox1" ).value, 
                } 
            }) 
            .then(() => { 
                wixLocation.to( '/account/Dashboard' ); 
            }) 
            . **catch** ((err) => { 

// handle error that prevented the email being sent
});
}
});
});

export function submitButton_onclick() {
$w( “#memberAccount” ).save();
}
$w.onReady( function () {
$w( “#memberAccount” ).onAfterSave( () => {
if (wixUsers.currentUser.loggedIn) {
const userId = wixUsers.currentUser.id;

        wixUsers.emailUser( "S6bBmUT" , userId, { 
            variables: { 

“country” : $w( “#countryDropdown” ).value,
“name” : $w( “#nameInput” ).value,
“account” : $w( “#accountCheckbox” ).value
}
} );
}
} );
} );

please can someone help reslove this?

Hello " myfundinc" my friend ^^

Try to use a code-structure like this one…

$w.onReady(() => {
    $w("#myDataset").onReady(() => {
        $w('#myButton').onClick(()=>{

            $w("#myDataset").setFieldValue("title", "New Title");
            $w("#myDataset").save();



        })
    });
});

Did you say I forget to put something in between the codes?

you forgot to input a ----> { <------ before ----> if <------- statement