Publishes the draft form.
function publishDraft(eventId: string): Promise<PublishDraftResponse>;
Event ID to which the form belongs.
import { forms } from "@wix/events";
async function publishDraft(eventId) {
const response = await forms.publishDraft(eventId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.