Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Save notification when ribbon button is clicked

Posted on by Microsoft Employee

Hi all, 

I have a custom Button calling a Custom Plugin (Action) using javascript when clicked. 
If the button is clicked when the Form is already save it works very nicely.

However, when a field is changed and the custom button is clicked before saving then there's a default Save notification poping up (below picture).

savingpop1.JPG

How can I avoid this? 

Ideally, if the form is not saved, clicking the button will save the form and then execute the plugin without showing a save notification to the user.

Thank you 

*This post is locked for comments

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Save notification when ribbon button is clicked

    Hi,

    Can you please check which dirty field is not allowing to open new window. If that field is locked (disable state) then please do use setSubmitmode("Always").

    Also make sure that you are saving record before calling action function.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Save notification when ribbon button is clicked

    Hi Solago,

    Make sure you set the field setsubmitmode is always in the form onload which you are changing.

    Xrm.Page.getAttribute("FieldName").setSubmitMode("always");

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