Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to automatically close "Reload site?" popup

Posted on by 1,320

When marking complete a custom activity, sometimes we get a pop-up asking us to save unsaved changes. I have tried to locate the plugin/javascript that is causing this popup, but have been unsuccessful. Instead, is there way to add javascript to automatically close this popup if it occurs? 

Ex.

var attributes = Xrm.Page.data.entity.attributes.get();

 for (var i in attributes)

   {       attributes[i].setSubmitMode(“never”); }

Xrm.Page.ui.close();

1401533.Capture.PNG

*This post is locked for comments

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to automatically close "Reload site?" popup

    Hello,

    Instead trying to close this popup you should resolve source of your issue - something changes attributes on your form. Find what - it can be either JS or Business Rule. I use "Levelup" chrome extension to see such fields. Good luck.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans