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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Save&New lose prefilled field values

(0) ShareShare
ReportReport
Posted on by 16

Hi,

I have a ribbon on the Account entity form that open a new form F whose some fields are prefilled OnLoad using the AccountId parameter. The form F exposes the Save&New button, once the user click that button the form is refreshed but the on load method is not invoked so that all the fields are empty.

How can I avoid this bad behaviour?

Is there any way to hook a JS method to the refresh event storing the AccountId as "global" variable?

Do you have any suggestion?

Thanks,

Paolo

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    You can create your own Save and New button using Ribbon workbench, which will perform the functions that you are looking for an replace the Save and New.

    Basically have the custom Save and New call a JavaScript function which will save the record, and then open a new record while passing parameters using Xrm.Utility.openEntityForm...

    Hope this helps.

  • ___Pool___ Profile Picture
    16 on at

    Thanks Aric for your suggestion, replacing the functionality is a really good option

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans