Uses old variables and functions from form_editor.js that lets us know if the form is dirty in the form editor.
- Since
- 1.0.6
- Source
Returns:
Whether the current form is dirty.
- Type:
- boolean
Example
import { isFormDirty } from "@gravityforms/utils";
function Example() {
if ( isFormDirty() ) {
// do something
}
}