Use the RSVP API to create custom RSVP experiences for your events.
You need to have at least one existing event before getting started.
- In the Dashboard, set up a registration form for an event.
- Retrieve the ID of an event from the Events/Events collection.
- Get the event
Form
using the getForm()
function with the ID retrieved above.
- Retrieve information about the form inputs in the form using the
formData
function.
- In the Editor, add user input elements for each form input retrieved above.
You may want to set the elements IDs to match the names of form inputs retrieved above
so that you will not have to map the names later.
- In the Editor, add a button that will be used to create a new RSVP using the form values
that a site visitor enters.
- When the create button is clicked, gather the values entered into the form in
a
FormValue
array and use the createRsvp()
function to create an RSVP using the form values.