Search.../

onSubmissionDeleted( )

Triggered when a submission is deleted.

Syntax

function wixForms_onSubmissionDeleted(event: SubmissionDeleted): void

onSubmissionDeleted Parameters

NAME
TYPE
DESCRIPTION
event
Optional
SubmissionDeleted

Information about the submission that was deleted.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

An event that triggers when a submission is deleted

Copy Code
1// Place this code in the events.js file
2// of your site's Backend section.
3// Add the file if it doesn't exist.
4
5export function wixForms_onSubmissionDeleted(event) {
6 console.log(`Deleted submission. Event details: `, event)
7}
8
9/* Full event object:
10{
11 "metadata": {
12 "entityId": "f8281b62-1b2f-45bf-ba7d-f041d7653d2d",
13 "eventTime": "2023-12-28T12:55:55.630Z",
14 "id": "a92d9e8b-abd7-4903-a954-5a6848f6f4eb",
15 "triggeredByAnonymizeRequest": false
16 }
17}