This method is deprecated.
Deprecated. This method will be deprecated on March 30, 2026. Replace with createRsvp().
Migration Instructions
To stay compatible with future changes, migrate to
createRsvp().
To migrate to the new method:
Add a backend file to your site.
Write a code so that it replaces the createRsvp() method from the frontend with the createRsvp() method from the backend. Export your backend function so that it can be used in the frontend.
Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected.
The list of FormValue objects you pass to
createRsvp() must include a form value for the rsvpStatus. Which statuses
you can return depends on the rsvpStatusOptions returned from the
FormData object as follows:
"YES_AND_NO": Send an rsvpStatus of "YES" or "NO"."YES_ONLY": Send an rsvpStatus of "YES"."OPEN_RSVP_WAITLIST": Send an rsvpStatus of "WAITING"
to add a guest to the wait list.When creating an RSVP with rsvpStatus of "WAITING" or "NO",
the list of FormValue objects should
only contain items for "firstName", "lastName", "email", and "rsvpStatus".
No other fields should be passed.
When creating an RSVP that adds additional guests, format the guest names for submission in an array where each element is the full name of a guest.
When creating an RSVP that contains an address, the way you format the address information for submission depends on what type of input elements you use to gather that information as follows:
Note: The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality.
ID of the event to create an RSVP for.
List of field names and values for an RSVP form.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.