Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

refreshing form in dyncamics crm 2016 causes problem

Posted on by Microsoft Employee

Hi

In dynamics crm 2016, I have disabled auto form save feature. I have a form which I want it after saving, reload it, because some dependent fields should get enabled after form load, but it does not happen, cause the js code I have put in form load event does not fire at all.

I searched the community and found that some people suggested to put the following code in form save event :

 Xrm.Utility.openEntityForm("opportunity", Xrm.Page.data.entity.getId());

but it causes the form to stuck there and tries to save the form and refresh it repeatedly :

rms_2D00_opp_2D00_form_2D00_.PNG

So, How can I handle the issue ? 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: refreshing form in dyncamics crm 2016 causes problem

    Thanks for sharing the solution, Alex. It seems like the most straightforward solutions is the best one.

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: refreshing form in dyncamics crm 2016 causes problem

    You'll need to remove that call from the onsave - you are actually asking Dynamics to navigate from the form (to the same form, but still) before the "Save" has finished.. so it starts asking you that question

    The most straightforward solution would be to attach "onchange" event handler (could be the same one) to all the fields that you want to respond to

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans