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

@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.

View solution in original post

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
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 (3,347)