Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Save&New lose prefilled field values

Posted on by 182

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

  • ___Pool___ Profile Picture
    ___Pool___ 182 on at
    RE: Save&New lose prefilled field values

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

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Save&New lose prefilled field values

    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.

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