I am using this: Alert for unsaved changes in form to alert for unsaved changes.
My issue is that I have multiple forms on my page:
- SearchForm
- RecordForm
I only want the alert to trigger for the RecordForm and not the SearchForm.
I can't seem to figure it out.