cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
G99
Post Prodigy
Post Prodigy

help with functions

Hi

Struggling with the following formula, I'd like to hide a datacard if the value in another is set to false, this works fine: If(DataCardValue6_2.Value = true, true)

 

But now I'd like to use tabs on my form and trying to set the visible of this datacard based on 2 statements, so the above and if PartA button is selected, but cant get it right this is what I have but cant get it right, on other datacards which do not have any other functions, this works fine:

BtnPartA.DisplayMode = DisplayMode.Disabled

 

But now combining both do not work:

If(DataCardValue6_2.Value = true, true,(BtnPartA.DisplayMode = DisplayMode.Disabled))

1 ACCEPTED SOLUTION

Accepted Solutions
brimstone
Advocate I
Advocate I

Hi @G99 

If I understand you correctly, you can use the And-Function to have the visibility based on 2 statements.

It would look like this:

 

If(And(DataCardValue6_2.Value = true, BtnPartA.DisplayMode = DisplayMode.Disabled), true, false)

 

So if the value of the datacard is true & the button is disabled, the visible is set true.

Please let me know if this solves your problem or if I misunderstood something.

View solution in original post

1 REPLY 1
brimstone
Advocate I
Advocate I

Hi @G99 

If I understand you correctly, you can use the And-Function to have the visibility based on 2 statements.

It would look like this:

 

If(And(DataCardValue6_2.Value = true, BtnPartA.DisplayMode = DisplayMode.Disabled), true, false)

 

So if the value of the datacard is true & the button is disabled, the visible is set true.

Please let me know if this solves your problem or if I misunderstood something.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,102)