formData.hasChanges
(FintechOS Studio 20.1.1 and later)
Indicates if the form has unsaved changes.
Return Value
Returns a boolean indicating if the form has changed or not since the last save:
- true – The form has unsaved changes.
- false – The form doesn't have unsaved changes.
Examples
In this example, we add a reminder in a form step's afterGenerate.js script to commit unsaved changes from the form's previous steps.
Copy
if (formData.hasChanges) {
ebs.showMessage('You have unsaved changes. Click Save and Reload to commit your updates.')
};