Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Command bar button visibility with choice


I've been trying to make a a couple of buttons on the command shown or hidden abased on a choice (A or B)  with PowerFX 


First button I have the formula: 

Visible: Self.Selected.Item.'Field' = 'Field'.A


Second one:
Visible: Self.Selected.Item.'Field' = 'Field'.B
But I always get both shown, no matter the value of the choice:

I've tried to publish and republish the solution, create new buttons, regenerate the ribbon and try another browser... I'm either doing a silly mistake (I just learned how to use Power FX and to edit buttons directly from the UI) or this is a bug. 



Super User
Super User


Try asking this question in the DataVerse Forum. You appear to be using a Model Driven app and you'll likely find more users of those apps in that forum.

Resolver I
Resolver I


is this a canvas app implemented into model-driven?

if yes then can you view the buttons in edit mode? 


if it's not a canvas app implemented into model-driven then I would suggest as @Eelman said as the dataverse community.


Helper I
Helper I

Thanks @Eelman and @AmeerJab , I was a bit confused on where to post this, It's MDA not canvas. I'll open a new thread on the Dataverse forum.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,754)