createEventRsvpForm( )


Deprecated: Creates a new RSVP form for the specified event.

Deprecation note: The createEventRsvpForm() function is being deprecated. Use the getForm() function instead.

Use the createEventRsvpForm() function to retrieve the information you need to create a custom RSVP form for a specified event and to submit the form data to register guests for the event.

Retrieve event IDs to specify an event from the Events/Events collection.

Note: To work with the Wix Events API, you need to publish your site.

Method Declaration
Copy
function createEventRsvpForm(eventId: string): RsvpForm;
Method Parameters
eventIdstringRequired

ID of the event to create an RSVP form for.

Returns
Return Type:RsvpForm
JavaScript
import wixEventsFrontend from 'wix-events-frontend'; // ... const eventId = // get an event ID const eventRsvpForm = wixEventsFrontend.createEventRsvpForm(eventId);
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?