Hi! I followed this article (Velo Tutorial: Sending an Email on Form Submission | Help Center | Wix.com) and this error shows up. Could anyone tell me the cause of this error?
have you tried $w(…).onAfterSave () (Note the two brackets trailing)?
Yes, this is how my code looks like. It still shows the error.
$w.onReady( function () {
$w(“#custom_made”).onAfterSave( (sendFormData) => {
console.log(“After save”);
} );
//$w(“#custom_made”).onAfterSave(sendFormData);
//$w(“#custom_made”).onAfterSave(sendFormData_recipient);
});
SOLVED! Sorry my stupid mistake, I input the label “custom_made” of the dataset instead of its name which is supposed to be “dataset1”