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

Hiding Card based on boolean Value

Hey everyone so i am very new to Powerapps and i am starting to get to know more about this app. Basically i have a form that consists of 2 questions. The first questions is a true and false, and if the user choose true , the next question will appear. I have checked other similar posting and i encountered some error. I have attached the example below. I really appreciate your help thank you for your time 🙂

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to display the "Specialprojects_DataCard2" within your Edit form based on the Toggle value in the "Do you request access to ..." data card?

 

Based on the formula that you provided, I think there is something wrong with it. I have made a test on my side, please consider take a try with the following workaround:

Set the Visible property of the "Specialprojects_DataCard2" in your Edit form to following:

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

Note: Currently, within PowerApps app, we could not modify properties of another control within one control directly.

 

Please consider take a try with above solution, then check if the issue is solved.

 

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
mdevaney
Super User
Super User

@Anonymous 

Your code would be valid if you put this in your Visible property.  In PowerApps we do not need to reference the control name Specialprojects_DataCard2.Visible at the start of some code.

If(DataCardValue20.Selected.Value="NO",False,True)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to display the "Specialprojects_DataCard2" within your Edit form based on the Toggle value in the "Do you request access to ..." data card?

 

Based on the formula that you provided, I think there is something wrong with it. I have made a test on my side, please consider take a try with the following workaround:

Set the Visible property of the "Specialprojects_DataCard2" in your Edit form to following:

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

Note: Currently, within PowerApps app, we could not modify properties of another control within one control directly.

 

Please consider take a try with above solution, then check if the issue is solved.

 

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 all for your reply! I managed to solved it just after i posted this 🙂 Really thank you for the replies though 😁

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 (5,877)