cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Arcadi
Helper I
Helper I

Command bar button visibility with choice

Hi,

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
Arcadi_1-1635608757771.png

 

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

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. 

 

 

3 REPLIES 3
Eelman
Super User
Super User

@Arcadi 

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.

AmeerJab
Resolver I
Resolver I

Hello,

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.

Regards.

Arcadi
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

Announcements
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.

PA.JPG

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)