LWT JavaScript API
    Preparing search index...
    lwtFormCheck: {
        askBeforeExit: () => void;
        dirty: boolean;
        isDirtyMessage: () => string | undefined;
        makeDirty: () => void;
        resetDirty: () => void;
        tagChanged: (duringInit: boolean) => void;
    } = ...

    Keeps track of a modified form.

    Type Declaration

    • askBeforeExit: () => void

      Call this function if you want to ask the user before exiting the form.

    • dirty: boolean
    • isDirtyMessage: () => string | undefined

      Check the DIRTY status and ask before leaving.

    • makeDirty: () => void

      Set the DIRTY variable to 1.

    • resetDirty: () => void

      Set the DIRTY variable to 0.

    • tagChanged: (duringInit: boolean) => void

      Called when a tag is changed (added or removed).