Search.../

onEventCanceled( )

A backend event that fires when a Wix event is canceled.

Description

The onEventCanceled() event handler runs when an existing Wix event is canceled. The received CanceledEvent object contains information about the event that was canceled.

Note: Backend events are not fired when previewing your site.

Syntax

function onEventCanceled(event: CanceledEvent): void

onEventCanceled Parameters

NAME
TYPE
DESCRIPTION
event
CanceledEvent

Information about the event that was canceled.

Returns

This function does not return anything.

Return Type:

void

Related Content:

Was this helpful?

A backend event that occurs when an existing Wix event is canceled

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 wixEvents_onEventCanceled(event) {
6 let eventId = event.eventId;
7 let title = event.title;
8}
9
10/* Full event object:
11 * {
12 * "timestamp": "2020-04-26T13:57:50.699Z",
13 * "eventId": "46dc2337-d725-4f7e-a0ae-a94a9a1f0c0b",
14 * "title": "My event",
15 * "userId": "01cb99e2-e969-421a-b65f-43bea2a66fa1"
16 * }
17 */