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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,972)