onSubmissionDeleted( )


Notes:

  • The Form Submission API is only available in Wix Studio and Editor X.
  • The Form Submission API only works with the Wix Forms app. Call GetAppInstance to confirm that the app named wix_forms is installed on the site.

Triggered when a submission is deleted.

Method Declaration
Copy
function wixForms_onSubmissionDeleted(event: SubmissionDeleted): void;
Method Parameters
eventSubmissionDeleted

Information about the submission that was deleted.

An event that triggers when a submission is deleted
JavaScript
// 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 } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?