Hi All,
I have implemented a dialog box in dynamics 365 crm which appears based on some business condition when user saves the form. In the dialog box i have given user only one option to refresh the form and everything is working fine until here as designed.
But as soon as the user hits on the refresh button the system shows and unsaved change dialog box which have two options "save and continue" and "discard". If the user hits on discard my form is refreshed but if user hits on the save and continue option then the refresh dialog box will again pop-up and it will continue ti be in the same loop until the user clicks on discard option.
I want to give the user ability to discard the changes and refresh the form when they hit on the refresh options in the dialog box and so they won't have to make a choice between save and continue or discard. They can directly click on refresh button to discard the changes and refresh the page so they get the latest changes.
I want to implement this discard and refresh code in javascript. So, kindly help me out with this if there is any possible way to perform this.
Thanks in advance!!
Regards,
Shiv