cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Help Stringing Two Expressions in Visible Property for PowerApps Form

I am working on a customized PowerApps form (not a PowerApp) and have run into an issue where I need to string two expressions together. Separately, they work, but any attempt I have made to join them has been unsuccessful so far.

 

Expression 1 - Hiding when the active tab (Request) is not clicked

Visible Property:  showvBtnRequest

The Request button has a variable name (vBtnRequest).

 

Expression 2 - Hiding when a certain status is not the selected value for that column

Visible Property:  If(vStatusValue.Selected.Value="Submitted", false, true)

If the selected value of the Status column on the view form is equal to Submitted, hide the column; otherwise, in any other Status, display the column.

 

I'm pretty sure I need to somehow get the first expression into a true/false format as right now it is not and then somehow string both criteria/expressions together. Just really unsure on how to achieve that. Any help is greatly appreciated as I've been working on this for some time now. For now, I've got the user seeing it on every tab and am defaulting to Expression two so the initial requestor doesn't see the column. Not an ideal user experience.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to combine the two condition together, or any one of the condition matches, display the column (Data Card field) in Edit form?

 

If you want to display your column (data card) only when the two conditions are meet simultaneously, please take a try with the following formula (set the Visible property of the field Data card in your Edit form):

If(
   showvBtnRequest && vStatusValue.Selected.Value <> "Submitted",
   true,
   false
)

 

If you want to display your column (Data card) when any one of the condition meet the criteria, please take a try with the following formula:

If(
   showvBtnRequest || vStatusValue.Selected.Value <> "Submitted",
   true,
   false
)

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

Try:

If(vStatusValue.Selected.Value="Submitted"&&showvBtnRequest, false, true)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to combine the two condition together, or any one of the condition matches, display the column (Data Card field) in Edit form?

 

If you want to display your column (data card) only when the two conditions are meet simultaneously, please take a try with the following formula (set the Visible property of the field Data card in your Edit form):

If(
   showvBtnRequest && vStatusValue.Selected.Value <> "Submitted",
   true,
   false
)

 

If you want to display your column (Data card) when any one of the condition meet the criteria, please take a try with the following formula:

If(
   showvBtnRequest || vStatusValue.Selected.Value <> "Submitted",
   true,
   false
)

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you for the response. It was the double pipe symbol that I was looking for (as either condition should cause the Visible property to hide the data card).

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
Users online (4,470)