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 / Hide Command button us...
Power Apps
Suggested Answer

Hide Command button using Power Fx Formula

(0) ShareShare
ReportReport
Posted on by 2
Dear All,
 
On a model driven app page command bar, i had placed a custom button and i want to make the button visible only to the Owner of the record. I tried with the below Power fx Formula on the Visibility property  
 
(Self.Selected.Item.Owner <> User()) 
 
still the button is visible in all users
 
how to achieve this functionality.
Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at
  • Suggested answer
    developerAJ Profile Picture
    4,763 on at
     
     
    please use this solution or alternatively
     
     
     

    If this solution helped you resolve your issue, kindly mark it as accepted — it makes it easier for others to find and also closes the discussion. If you found it useful, a Like ❤️ would be greatly appreciated!

    🏷️ Please tag me @developerAJ if you still have any queries or issue persists

    🤝 Let’s connect on LinkedIn 

    📘 Explore more on my articles

    🐱‍💻 Github Link

    💼👥 Looking for Jobs Power Platform & Microsoft Jobs Network

  • Suggested answer
    MS.Ragavendar Profile Picture
    6,334 Super User 2026 Season 1 on at
     

    You require Ribbon Workbench to load the javascript function into a Custom Rule.

    See Scott Darrow's tutorials here:

    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard