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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Any ideas how to hide Save and New button from Service Activities?

(0) ShareShare
ReportReport
Posted on by

Hi !

Anyone knows how to do it? I 've tried Ribbon Workbench but it can't find that button.

I also tried using jquery but also didn't work because of the structure of id apparently.

function DisappearSaveNew()
{
//First we get the jquery library which is CRM already using
if (typeof ($) == 'undefined') {
  if(!!parent) {
    $ = parent.$;
    jQuery = parent.jQuery;
	
//Hide the Save and New button 
$('#serviceappointment|NoRelationship|Form|Mscrm.Form.serviceappointment.SaveAndNew-Medium').hide();

}

}

}

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at
    RE: Any ideas how to hide Save and New button from Service Activities?

    Please follow below steps:

    1. Create a new solution and add Service Activity to the solution.

    2. Publish and Esport the solution.

    3. Open Customization.xml and search for RibbonDiffXml

    4. Put this line of code :

    <CustomActions>
    <HideCustomAction HideActionId="new.Mscrm.Form.serviceappointment.SaveAndNew.Hide" Location="Mscrm.Form.serviceappointment.SaveAndNew" />
    </CustomActions>

    0247.Capture.PNG


    5. Save the file and send the three files [Content_Types], customizations and 
    solution and send to Compressed Folder. Rename the name of this zip file to the solution
    name you have exported.

    6. Reimport the new zip file and publish the changes


  • Community Member Profile Picture
    on at
    RE: Any ideas how to hide Save and New button from Service Activities?

    It worked. Thanks a lot for your help!

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans