Search.../

onRsvpDeleted( )

A backend event that fires when an RSVP is deleted.

Description

The onRsvpDeleted() event handler runs when an RSVP is deleted. The received RsvpDeletedEvent object contains information about the deleted RSVP.

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

Syntax

function onRsvpDeleted(event: RsvpDeletedEvent): void

onRsvpDeleted Parameters

NAME
TYPE
DESCRIPTION
event
RsvpDeletedEvent

Information about the RSVP that was deleted.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

A backend event that occurs when an RSVP 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 wixEvents_onRsvpDeleted(event) {
6 let eventId = event.eventId;
7 let rsvpId = event.rsvpId;
8}
9
10
11/* Full event object:
12 * {
13 * "timestamp": "2020-04-27T13:37:22.444Z",
14 * "eventId": "0adc383d-db6b-4c4a-8fb8-5fe77c6569bb",
15 * "rsvpId": "4160c868-35b8-49f3-bff2-9d3912be9c0a",
16 * "contactId": "2b1df22d-cfcf-447e-9afe-27b782aecd8c",
17 * "memberId": "c2b48f6f-5964-46ad-9888-1e9d3f81b83b",
18 * "anonymized": false
19 * }
20 */