Trigger when guest is removed from RSVP event

Question:
Where can I add code that needs to be executed when someone remove a guest from the guestlist of an RSVP. How can I trigger that?

Product:
[Which editor or feature is your question most relevant to? e.g. Wix Editor, Wix Studio Editor.]

What are you trying to achieve:
I want code that sent a mail to the owner when a guest is removed and that updates a collection.

What have you already tried:
I tried already to put it in events.js under the function wixEvents_onRsvpCancelled(event), but it’s not executed.
There’s also no automation trigger available for this.

Can you share the code you’ve already tried? It’s a huge help to point you in the right direction.


To format your code in the forum:

```js
const myCode = ‘here’;

export function myFunc() {
    return true;
}
```

This will then format your code to display properly (example below) and make it much easier for people on this forum to help you.

const myCode = 'here';

export function myFunc() {
    return true;
}