getForm( )


Deprecated

This method is deprecated.

Deprecated. This method will be deprecated on March 30, 2026. Replace with getForm().

Migration Instructions

To stay compatible with future changes, migrate to getForm().

To migrate to the new method:

  1. Add a backend file to your site.

  2. Write a code so that it replaces the getForm() method from the frontend with the getForm() method from the backend. Export your backend function so that it can be used in the frontend.

  3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected.

getForm() retrieves the information 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: The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality.

Method Declaration
Copy
Method Parameters
eventIdstringRequired

ID of the event to get a registration form for.

Returns
Return Type:Promise<Form>
Errors

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

Did this help?