Unsaved Child Entries Warning for Gravity View
If you add child entries to a Nested Form field when editing a parent entry in GravityView, these new child entries will not be saved to the parent entry unless the user updates the parent entry.
This snippet will show a warning that there are unsaved changes if the user attempts to exit the page without updating the parent entry.
If you would rather automatically attach child entries to the parent entry on creation, see:
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Code
Filename: gpnf-gv-unsaved-child-entries-warning.js