RSVP - Google Sheets integration

Thanks Amanda,

I managed to get the form example working. My events rsvp shouldn’t bee too much harder.
I’m using the same googlesheet-wrapper and also importing the wixEvents-onRsvpCreated module from the events.js backend file. So far so good.

Now I just need a bit of code on the page to push the RSVP Form data to the spreadsheet.

This is what I have so far

import { appendValuesWrapper } from ‘backend/googlesheet-wrapper’
import { wixEvents_onRsvpCreated } from ‘backend/events’
$w . onReady ( function () {

aync function saveValuesToSheet () {
wixEvents_onRsvpCreated ( Event )
const values = [ firstName , lastName , email ];
appendValuesWrapper ( values );

}
}

I’m not sure if I have to specify the event or it will just work for all events. Do I have to declare the variables again (firstname, lastname, email) as they are declared in the wixEvents_onRsvpCreated .js file

I can’t be the only one who has ever done this, yet I can’t find an example anywhere.

Any clues would be greatly appreciated.