Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Ribbon Workbench - hide a button when field is null

(0) ShareShare
ReportReport
Posted on by 65

Hi, 

I want to hide this create invitation button when two conditions is satisfied. The field boq_hubguid is empty and field contacttype = 815233. I have added following display rule but it is not working. 

pastedimage1663475985386v1.png

  • Suggested answer
    Yuri ji Profile Picture
    Yuri ji on at
    RE: Ribbon Workbench - hide a button when field is null

    Hi,

    If you want to control the display or hide of the button by “role”.

    You can refer to this link below:

    d365demystified.com/.../

  • Prajwal Bhetwal Profile Picture
    Prajwal Bhetwal 65 on at
    RE: Ribbon Workbench - hide a button when field is null

    Hi Yuri ji

    Thanks for your response. It's working well.

    I also want to not display the Send Invitation button when the Contact Type = 815233 and the user does not have a role higher than BDM

    How do I check this privilege in the ribbon workbench?

  • Suggested answer
    Yuri ji Profile Picture
    Yuri ji on at
    RE: Ribbon Workbench - hide a button when field is null

    Hi,

    Please try adding “OrRule” to “Display Rule”.

    pastedimage1663557614729v1.png

    The button is hidden when both conditions are met:

    Web-capture_5F00_19_2D00_9_2D00_2022_5F00_11233_5F00_orgcf25b196.crm.dynamics.com.jpeg

    Web-capture_5F00_19_2D00_9_2D00_2022_5F00_11154_5F00_orgcf25b196.crm.dynamics.com.jpeg

  • Prajwal Bhetwal Profile Picture
    Prajwal Bhetwal 65 on at
    RE: Ribbon Workbench - hide a button when field is null

    actually, we want to ribbon workbench to do it not by using any power fx or any javascript... hence the question title mentions ribbon workbench but thanks for your suggestion.

  • M.Anas Profile Picture
    M.Anas 35 on at
    RE: Ribbon Workbench - hide a button when field is null

    Why you don't Formula Expression to show hide button. 

       

    hope this link will help you

  • Prajwal Bhetwal Profile Picture
    Prajwal Bhetwal 65 on at
    RE: Ribbon Workbench - hide a button when field is null

    Is it not possible to do without javascript by using value rule?

  • MuhammadAnas Profile Picture
    MuhammadAnas 15 on at
    RE: Ribbon Workbench - hide a button when field is null

    Use Enable Rule to perform this action add javascript and put condition if field value is null then return false.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans