Disable Modal Cancel Confirmation
This snippet removes the confirmation prompt when canceling a Nested Form modal. Normally, when a user attempts to close the modal without saving, they are asked to confirm their action. With this snippet, the modal closes immediately.
Instructions
- Install this snippet. https://gravitywiz.com/documentation/managing-snippets/#where-do-i-put-snippets
Code
Filename: gpnf-disable-modal-cancel-confirmation.php