locked
ribbon workbench question (display rule) RRS feed

  • Question

  • Hello, I've been using Ribbon Workbench to make ribbon updates.  I can easily create an Enable Rule by mapping to a JavaScript function that returns true or false based on certain conditions.

    However, I tried to create a Display Rule today and I didn't see an option to map to a JavaScript function.  Is this simply how CRM works?  In other words, does CRM not provide the ability to map a Display Rule to a JavaScript function, thereby forcing you to choose a different approach?  Or is this a gap in RWB or am I simply overlooking the implementation?

    Why would there be a js option for Enable Rules but not Display Rules?
    Saturday, January 18, 2014 5:27 AM

All replies

  • Hi,

    Yes, MSDN documentation also confirms that javascript option is not available for <DisplayRule>.

    http://msdn.microsoft.com/en-us/library/gg334209.aspx

    While <CustomRule> is available for <EnableRule> to work with javascript function.

    http://msdn.microsoft.com/en-us/library/gg328073.aspx

    But Here is a workaround to achieve it.

    http://nishantrana.wordpress.com/2012/05/18/hiding-ribbon-button-using-javascript-in-crm-2011/

    Please mark this post as an answer if this helps.


    Ajay Chawla


    • Edited by Ajay Chawla Saturday, January 18, 2014 6:16 AM
    • Proposed as answer by Ajay Chawla Tuesday, January 21, 2014 8:17 AM
    Saturday, January 18, 2014 6:15 AM