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,184 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans