This example demonstrates how to use multiple modals to get confirmation from a user before discarding their work. If you attempt to close this modal via the close button, pressing the Esc key, or clicking outside the modal, a second modal will be shown asking you to confirm your action.
The first modal can only be closed by submitting its form or by confirming you want to discard your work in the second modal.
All information you have entered will be deleted.