Adds an input control to the draft form.
You can only call this method when authenticated as a Wix app or Wix user identity.
function addControl(
eventId: string,
options: AddControlOptions,
): Promise<AddControlResponse>;
Event ID to which the form belongs.
Optional fields.
import { forms } from "@wix/events";
async function addControl(eventId, options) {
const response = await forms.addControl(eventId, options);
}
import { forms } from "@wix/events";
async function addControl(eventId, options) {
const response = await forms.addControl(eventId, options);
}