locked
Hide a ribbon button in CRM 2016 using Javascript RRS feed

  • Question

  • I want to hide a ribbon button using Javascript in CRM 2016 without using Display/Enable rules. Any help will be appreciated.
    • Edited by Sks05 Friday, October 14, 2016 7:30 AM
    Friday, October 14, 2016 7:04 AM

All replies

  • Hello,

    I'm afraid that anything except usage of Display/Enable rules can be considered as unsupported approach. I strongly suggest to avoid unsupported approach and use Display/Enable Rules and Ribbon Workbench tool.


    Dynamics CRM MVP
    Read My blog
    Subscribe for one of my courses

    Friday, October 14, 2016 8:16 AM
    Moderator
  • Hi ,

    Create a javascript function. According to your conditions return true or false . Create an enable rule and add this javascript function as Custom Rule.If javascript function return false , ribbon button will be unvisible.

    You can customize it using Ribbon WorkBench. 


    If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın My blog



    Sunday, October 16, 2016 1:10 PM
  • Hi,

    The bulk of the ribbon buttons are controlled inherently by the Roles and Permissions. It may just be that you can configure a role that would hide the button.

    regards,

    Donald

    Monday, October 17, 2016 11:57 AM