cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Netangel
Level: Power Up

Make a card visable with IF statement?

Hi

 

I'm new to powerapps and could do with a bit of guidance with a visible if statement.

 

Basically I have a New_Photo data card with a yes or no choice.

I want the attachment data card to appear if yes is selected.

 

Any advice would be greatly appreciated

2 REPLIES 2
Microsoft Employee

Re: Make a card visable with IF statement?

Below is an example with a toggle control:

Toggle1.OnChange=Set(vvv,Toggle1.Value=true)

{Attachments}_DataCard1.Visible=vvv

 

Community Support Team
Community Support Team

Re: Make a card visable with IF statement?

Hi @Netangel,

 

If your yes or no column is a toggle control inside the Form like the auto-generated app shows, then please set the Visible property of the Attachment data card to:

If(New_Photo_DataCardValue.Value=true,true,false)

Regards,

Mona

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