cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Elzoolio
Frequent Visitor

Power fx - Visibility on 2 Conditions?

I'd like to set the visibility on a custom button in the command bar based on two conditions.

 

  • If(Self.Selected.Item.'Status Reason' = 'Status Reason (Text Messages)'.Workflow,true,false)
  • If(Self.Selected.Item.'Follow Up Complete' = 'Follow Up Complete (Text Messages)'.Yes,false,true)
How would I write a command that encompasses both parameters?
 
Thank you
1 ACCEPTED SOLUTION

Accepted Solutions
Elzoolio
Frequent Visitor

After searching and searching I figured out what I needed to do. 

 

First I changed the Yes on the Follow Up Complete statement to No

Second I added && as the magic connector.

 
If(Self.Selected.Item.'Status Reason' = 'Status Reason (Text Messages)'.Workflow && Self.Selected.Item.'Follow Up Complete' = 'Follow Up Complete (Text Messages)'.No,true,false)
 
That was it, I just couldn't find the information initially.

View solution in original post

1 REPLY 1
Elzoolio
Frequent Visitor

After searching and searching I figured out what I needed to do. 

 

First I changed the Yes on the Follow Up Complete statement to No

Second I added && as the magic connector.

 
If(Self.Selected.Item.'Status Reason' = 'Status Reason (Text Messages)'.Workflow && Self.Selected.Item.'Follow Up Complete' = 'Follow Up Complete (Text Messages)'.No,true,false)
 
That was it, I just couldn't find the information initially.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,206)