I have customized form in a sharepoint list .
When the user clicks "New" and enters data, but they clicks on x (close button) instead of clicking "Cancel" or "Save" on ribbon , the data in the controls will remain the next time he clicks "New".
sharePointIntegration.onCancel=ResetForm(SharePointFormNew)
when they Click on "cencel" the form will reset .but the close button is the problem .
I really appreciate any help you can provide.