Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

Save&New lose prefilled field values

Posted on by 180

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

 

Categories:
  • ___Pool___ Profile Picture
    ___Pool___ 180 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,620 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,884 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans