Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Ribbon Workbench Hide/Show Buttons on Boolean Fields

  • 1.  Ribbon Workbench Hide/Show Buttons on Boolean Fields

    Posted Nov 06, 2019 11:11 AM
    I couldn't easily find an answer to this question, so after some experimenting, I thought it would be appropriate to share what I've found should anyone follow after me.

    The use case was to show/hide buttons on a ribbon based upon a boolean field value.  Since you can represent a boolean field value with 1/0, yes/no, and true/false it wasn't immediately obvious to me which one the Ribbon Workbench would take as an input.  Turns out the Ribbon Workbench only recognizes the values of true/false when you're working with Display/Enable rules.  Hopefully that helps someone else down the road.

    #CustomerEngagement #Admin​​​​

    ------------------------------
    Jonathan Blackham
    ------------------------------
    Academy - Online Interactive Learning from Experts


  • 2.  RE: Ribbon Workbench Hide/Show Buttons on Boolean Fields

    Posted Nov 07, 2019 06:38 AM
    Hi Jonathan,
    That is correct. Ribbon Workbench uses true/false for display/enable rules. Please ensure that the file in which the JavaScript function is written is part of the library of the form.

    ------------------------------
    Nikhil Rajendran
    Microsoft Dynamics CRM Developer
    Aha Apps
    Glen Allen VA
    ------------------------------

    Academy - Online Interactive Learning from Experts


If you've found this thread useful, dive deeper into User Group community content by role