getForm( )


Retrieves an event registration form (both the draft and published versions).

Permissions
Read Events - all read permissions
Manage Bookings Services and Settings
Manage Events - all permissions
Read Events
Manage Guest List
Manage Events
Learn more about app permissions.
Method Declaration
Copy
function getForm(eventId: string, options: GetFormOptions): Promise<Form>;
Method Parameters
eventIdstringRequired

Event ID to which the form belongs.


optionsGetFormOptions

Optional fields.

Returns
Return Type:Promise<Form>
JavaScript
import { forms } from "wix-events.v2"; async function getForm(eventId, options) { try { const result = await forms.getForm(eventId, options); return result; } catch (error) { console.error(error); // Handle the error } }
Errors

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

Did this help?