web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Refresh form after clicking save button.

(0) ShareShare
ReportReport
Posted on by

Hi all,

I want to refresh the form as soon as it get saved. because there are some values which are not getting updated. for getting these values updated i need to manually refresh the form or when i open the record next time the values are getting updated, instead of this I want to refresh the form as soon as it gets saved.

how can i achieve this functionality ?  

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    If the values are updated as part of the save then they should be reflected on the form. Perhaps the update is happening asynchronously? If so, try changing any workflows/plugins to synchronously and then the values should be updated.

    Hope this helps

  • Community Member Profile Picture
    on at

    Hi,

    The exact scenario is, there are two lookup fields on the lead. one is parentaccountid(lookup field)  , the other field is also lookup.. these two lookup fields are having quick view forms.... the other field is lookup record on the account record.. so when i select parentaccount and when I save the form the other field should get the lookup value from the parentaccountid record....  Now the problem is onSave of the record the value is coming but quick view form under that record is not updating

  • Aman Kothari Profile Picture
    on at

    For form refresh first you need to check Event mode on save click if event value is 1 then you reload page with below code.

    //Send Context as first parameter

    function Onsave(context){

    var eventArgs = context.getEventArgs();

    if (eventArgs.getSaveMode() == 1) {

    window.location.reload(true);

    or

    Xrm.Page.data.refresh(true);

    or

    Xrm.Utility.openEntityForm(“EntityName”, Xrm.Page.data.entity.getId());

    }

    }

    Thanks

    Aman Kothari

    LinkedIn | Blog

  • Suggested answer
    shivaram Profile Picture
    3,315 on at

    Hi Tharun sai,

    You can write a JS(location.reload) and call that onchange of Modified on field.

    Then page will refresh after saving of that record.

    Hope it helps you.

    Thanks.

  • Sumit Choudhary Profile Picture
    40 on at

    Helpful

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans