Search...
onEventStarted( )
An event that's triggered when a Wix Event has started.
Description
The onEventStarted()
event handler runs when a Wix Event has started. The received EventStarted
object contains information about the Wix Event that has started and metadata for the event.
Note: Backend events are not fired when previewing your site.
Syntax
function wixEvents_onEventStarted(event: EventStarted): void
onEventStarted Parameters
NAME
TYPE
DESCRIPTION
event
Optional
EventStarted
Information about the Wix Event that has started and metadata for the event.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onEventStarted example
Copy Code
12 export function wixEvents_onEventStarted(event) {3 const eventId = event.metadata.id4 const entityId = event.data.event._id;5 }67