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 / How to hide buttons co...
Power Apps
Answered

How to hide buttons conditionally in the new command bar

(0) ShareShare
ReportReport
Posted on by 305

I want to hide the delete button based on certain conditions.

I'm trying to use the the new command bar to do this

But while code /powerfx can be attached to custom buttons,

the options to add code/powerfx are greyed out completely for the existing buttons like new edit delete etc in the new command bar customisation. I was hoping to use this new command bar and avoid using ribbon workbench

I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Rutu01 - 

     

    Although it is possible to modify customs button using Power FX, it is not possible yet to hide out of the box buttons without Ribbon workbench.

     

    Amik_0-1712008757021.jpeg

     

    image ref: https://develop1.net/public/post/2021/07/25/RibbonWorkbench-vs-PowerFx?trk=public_post_comment-text

     

  • Rutu01 Profile Picture
    305 on at

    Is it possible to use javascript to hide command bar buttons ?

  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Rutu01 - yes but you will still require Ribbon Workbench to load the javascript function into a Custom Rule.

     

    See Scott Darrow's tutorials here:

     

    https://www.youtube.com/watch?v=he690moJnlA 

     

    https://www.develop1.net/public/rwb/ribbonworkbench.aspx 

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