Notes:
wix_forms
is installed on the site.
Triggered when a submission is deleted.
function wixForms_onSubmissionDeleted(event: SubmissionDeleted): void;
Information about the submission that was deleted.
// Place this code in the events.js file
// of your site's Backend section.
// Add the file if it doesn't exist.
export function wixForms_onSubmissionDeleted(event) {
console.log(`Deleted submission. Event details: `, event)
}
/* Full event object:
{
"metadata": {
"entityId": "f8281b62-1b2f-45bf-ba7d-f041d7653d2d",
"eventTime": "2023-12-28T12:55:55.630Z",
"id": "a92d9e8b-abd7-4903-a954-5a6848f6f4eb",
"triggeredByAnonymizeRequest": false
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.