addControl( )


Adds an input control to the draft form.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Events
Learn more about app permissions.
Method Declaration
Copy
function addControl(
  eventId: string,
  options: AddControlOptions,
): Promise<AddControlResponse>;
Method Parameters
eventIdstringRequired

Event ID to which the form belongs.


optionsAddControlOptions

Optional fields.

Returns
Return Type:Promise<AddControlResponse>
JavaScript
import { forms } from "@wix/events"; async function addControl(eventId, options) { const response = await forms.addControl(eventId, options); }
Did this help?