Search.../

onBookingNumberOfParticipantsUpdated( )

Developer Preview

An event that's triggered when the number of participants for a booking is updated.

Description

The onBookingNumberOfParticipantsUpdated() event handler runs when the number of participants for a booking is updated. The received BookingNumberOfParticipantsUpdatedEvent object contains information about the booking whose number of participants were updated and metadata for the event.

Note: Backend events don't work when previewing your site.

Syntax

function wixBookings_onBookingNumberOfParticipantsUpdated(event: BookingNumberOfParticipantsUpdated): void

onBookingNumberOfParticipantsUpdated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BookingNumberOfParticipantsUpdated

Information about the booking whose number of participants was updated and metadata for the event.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBookingNumberOfParticipantsUpdated example

Copy Code
1
2 export function wixBookings_onBookingNumberOfParticipantsUpdated(event) {
3 const eventId = event.metadata.id
4 const entityId = event.data.booking._id;
5 }
6
7