Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Hide button on model-driven app based on another field value


I am trying the new "preview" functionality to edit the menu items in model-driven apps and already managed to add a button and make it launch a website when clicked. I am pretty new at all this btw.


Now, I am trying to make it visible only when "Active PI" field value is "Yes". So far, I was not successful and I was hoping someone from you could help me with this one.


What I have tried so far is:

  • if('Active PI (Organization).Yes', true, false)
  • if('Active PI (Organization).No', false)


Screenshot 2021-09-02 183537.png


Thank you,



Community Support
Community Support

Hi @Kass ,


You could use the formula like this on visible property:


If(Self.Selected.Item.Test_Yes_No='Test_Yes_No (TestL12)'.Yes,true,false)



But after my test, I found that the function still has a bug.


For example:

If I have a record with a 'Yes' value ,The icon will show. Once you click it , the formula of onselect property will be executed. 


If I have a record with a 'No' value ,The icon will still show. But once you click it , the formula of onselect property will not be executed. It will report an error 'Component .... not found.'.


This seems to be a problem caused by the'Yes/No' column in command bar.


Best Regards,





Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,167)