Gets a new registration form for the specified event.
Use the getForm()
function to retrieve the information
you need to create a custom registration form
for a specified event.
Retrieve event IDs from the Events/Events collection to specify which event's form to get.
Note: To work with the Wix Events API, you need to publish your site.
function getForm(eventId: string): Promise<Form>;
ID of the event to get a registration form for.
import wixEventsFrontend from "wix-events-frontend";
// ...
const eventId = // get an event ID
wixEventsFrontend.getForm(eventId).then((result) => {
let form = result;
});
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.