Share via

Remove button from Task Ribbon in Project Web App

Anonymous
2016-08-08T12:22:09+00:00

I would like to remove the "Mark Task Complete" button from the Task Ribbon on my Project Web App to prevent users from clicking on it. I have been successful in adding a custom JavaScript Web Part to hide the button after a 200 millisecond delay because the JavaScript has to wait for the page to load. However, this leads to a bad user experience and it is not guaranteed that the page will load after 200 milliseconds  Here is that JavaScript.  

<html>

<body>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

<script>

$(document).ready(function(){

   $("li.ms-cui-tt a:eq(1)").trigger("click");

});

window.onload = function(){

 setTimeout(function(){

   document.getElementById('Ribbon.ContextualTabs.MyWork.Home.Tasks.MarkComplete-Large').style.display = 'none';

 }, 200);

};

</script>

</body>

</html>

Is there a way to accomplish the desired affect without using a delay?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-08-08T13:57:37+00:00

Hi Spencer,

There is no out-of-the-box option to disable the Mark Complete button in the Tasks tab using the Permissions feature in Project Online.

You can check the list of available permissions to be given / denied with Project Permission Mode using the link below:

Category permissions in Project Server 2013.

Global permissions in Project Server 2013.

Alternatively, if you are using SharePoint Permission mode, you can check the permissions of each group using the link below:

SharePoint Permissions Mode default permissions for Project Server 2013 SharePoint groups.

As you are using a JavaScript Web Part as a workaround, we'd suggest posting in theProject customization and programming forum to see if there is a workaround regarding the 200ms delay.

Regards,

Sheen

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful