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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Try to Disable Save Ribbon Button.

(0) ShareShare
ReportReport
Posted on by 155

Hi, I am new to CRM 2011.I have tried to disable Save Ribbon Button using <RibbonDiffXml> tag in customizations.xml. I was not able to find any customization tag regarding Save Ribbon button. So I have referred and  tried the following Java Script code in Onload event of the form.

 function hide()

{
var bid = "Mscrm.HomepageGrid.account.Save"; 
var btn = window.top.document.getElementById(bid);
if(btn)
{
btn.disabled = true;
}
}

I got the following error.

 

Please Kindly help me and please teach me if any other alternative way to hide Save Ribbon Button Thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    You can use the Ribbon Workbench (ribbonworkbench.uservoice.com/.../71374-1-getting-started-with-the-ribbon-workbench) to disable buttons.

    You can disable or hide depending on your requirements. If you want to hide always, you can simply right click on the button and hide, if you want to conditionally disable then you need to right-Click Customise Command and then add a custom EnableRule that calls your javascript function.

    hth,

    Scott

  • Verified answer
    Marius Agur Pedersen Profile Picture
    1,771 on at

    Hi.

    The simplest way to do this (in my oppinion) is to create a new solution, give it a clever name like "Remove Save Button", then go to "Components" in the solution and click the "add existing button", and add "Application Ribbons". Next you just save the solution and hit the export button and save it to disk.

    Open up the zip-ed solution and open the customizations.xml in an editor (notepad, notepad++, textpad, or any other you're familiar with). Edit the following line in the file:

                 <CustomActions />

    So it looks like this:

                 <CustomActions>

                 <HideCustomAction Location="Mscrm.Form.{!EntityLogicalName}.Save" HideActionId="Magnetism.HideCustomAction.Form.Save"/>

                 </CustomActions>

    This will hide the save-button from all forms, if you just want to hide it from a single form you just replace the "{!EntityLogicalName}" with the form you want to hide it from. If you need to hide it from several forms or hide several buttons just add several lines.

    For more information about forms and buttons download the CRM SDK and check the forms in the following folder:

    ....\sdk-folder\resources\exportedribbonxml\

  • Prabaharan Kannan Profile Picture
    155 on at

    Hi Scott, Thanks for your Valuable reply. I have tried Ribbon Workbench in our local CRM Server. But  I need to implement it in another CRM server. They are not allowed me to use Ribbon Workbench in their CRM Server. So that I have tried Java Script. Please help me if any other way to do this.

    With Thanks,

    Prabaharan.  

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Use the Ribbon Workbench in your Development Environment and make the changes to the solution. Publish your changes, Export the solution and import it to the test/prod environment.

    The changes that you made in Dev will be applied to the new environment.

  • Prabaharan Kannan Profile Picture
    155 on at

    Hi Marius,

    Thank you very much for your timely help.

    With thanks,

    Prabaharan Kannan.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans