Skip to main content

Notifications

Community site session details

Community site session details

Session Id : YG3WDpiYxWOxgNr41NsNkx
Power Apps - Microsoft Dataverse
Answered

How to hide buttons conditionally in the new command bar

Like (0) ShareShare
ReportReport
Posted on 1 Apr 2024 21:42:52 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

Categories:
  • Verified answer
    Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 02 Apr 2024 at 23:15:17
    Re: How to hide buttons conditionally in the new command bar

    @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 

  • Rutu01 Profile Picture
    305 on 02 Apr 2024 at 11:10:54
    Re: How to hide buttons conditionally in the new command bar

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

  • Verified answer
    Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 01 Apr 2024 at 22:00:38
    Re: How to hide buttons conditionally in the new command bar

    @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

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started