Enable/disable a ribbon button from JavaScript RRS feed

  • Question

  • Hi everyone, I get tired to looking and don't found a direct answer about how to enable / disable a ribbon button, I'm working by the first time in SharePoint and I don't have any idea of how it works by the controls. I have a Project Sever 2010 and what my client wants is when check a user task the "Remove Task" button been enable if the task is not 100%, but I can't find and easy way or explicit way of how to do that.

    Can somebody help me?


    .Net Developer and SharePoint programmer

    Tuesday, August 20, 2013 3:56 PM

All replies

  • Hi Carlos --

    There is no way to modify ribbons in PWA without customization.

    Secondly, I don't understand the scenario that you describe. Your client wants the 'Remove Task' button enabled if the task is <100%, and disabled if the task is 100%?

    Be careful here... if used improperly, the 'Remove Task' button can be dangerous. If I had my way, I would disable / hide it entirely. Just because the client says that they want something, that should not mean that you automatically do it without warning them of the consequences.

    -- tz

    Tony Zink | Vice President, EPMA | | Blog: | Training:

    Tuesday, August 20, 2013 9:05 PM
  • Thanks t0nyz1nkfor your answer, yes already check about that, I also no glad but that decision, but is what the client wants, and for the scenario, yes they want to have the chance of delete they task if is not at 100%, even when they have time add, and is a shame than I couldn’t do what the client wants.

    Thanks anyway.

    .Net Developer and SharePoint programmer

    Tuesday, August 20, 2013 10:43 PM
  • Hi Carlos,

    It is actually possible to remove (/hide) ribbon buttons using just JavaScript, see the following blog post:



    Martin Laukkanen (Project Server Blog -

    Friday, August 23, 2013 1:23 AM