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 7 days ago
    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
    ------------------------------
    Conference-CRMUG_200x200


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

    Posted 7 days ago
    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
    ------------------------------

    Conference-CRMUG_200x200


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