web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show/Hide button using...
Power Apps
Unanswered

Show/Hide button using Ribbon Workbench

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I want to show/hide ribbon button with a Contain condition. 

 

For example:

 

There are three people email in a text field. The button will visible/invisible based on logged in user email in the text field. 

 

I think that the security role is not suitable to do because of the email(s) in the text field is dynamic not static. 

 

Any suggestion on this? 

 

 

 

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Yes. Don't use the Ribbon Workbench.

     

    Instead, use Commands, and write a PowerFX command to evaluate your condition. You can get the current user's email address in PowerFX commands with 

    User().Email

    User function in PowerFX 

    Using PowerFX in Commands

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    I would recommend using Custom Rule with JavaScript. Check this as an example - https://www.drware.com/show-custom-ribbon-button-based-on-security-role-of-the-logged-in-user-in-dynamics-365-ribbon-workbench-in-xrmtoolbox/

  • Cheang Profile Picture
    4 on at

    I don't think is workable. The User() function is not supported.  I try to print out the user email using function Confrim Titlebut there are nothing show up. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard