getForm( )


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.

Method Declaration
Copy
function getForm(eventId: string): Promise<Form>;
Method Parameters
eventIdstringRequired

ID of the event to get a registration form for.

Returns
Return Type:Promise<Form>
JavaScript
import wixEventsFrontend from "wix-events-frontend"; // ... const eventId = // get an event ID wixEventsFrontend.getForm(eventId).then((result) => { let form = result; });
Errors

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

Did this help?