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