cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MelodyShults
Level: Powered On

Hide and then show a data cards based on value in another card

I have a form with a set of question when the user answer the questions they get two options to choice from Completed or Not Applicable. when the user selects Not Applicable,  I want to show a second card that requires them to give a reason for the Not Applicable selection.

Can some one provide me with the step by step instruction?

2 ACCEPTED SOLUTIONS

Accepted Solutions
PowerAsh
Level: Powered On

Re: Hide and then show a data cards based on value in another card

Your form would need to already have the section for the comment.
FormExample.png
You will need to select the data card that the reason is in:

Datacard.png

 

Then, change the Visibility to something like: If(DataCardValue4.Selected.Value = "Not Applicable", true, false)

DataCardValue4 is the name of the dropdown that the user would use to choose Completed/Not Applicable. Change this name to whatever it is in your form.

 

Therefore: when "Completed" is selected, the Reason data card will be invisible, and when "Not Applicable" is selected, the Reason data card will be visible.

 

 

Community Support Team
Community Support Team

Re: Hide and then show a data cards based on value in another card

HI @MelodyShults,

I have made a test on my side, please take a try with the following workaround:9.JPG

 

10.JPG

Within the Edit form, set the OnChange property of the Combo Box control within the Question Data card (DataCardValue5) to following:

If(
DataCardValue5.Selected.Value = "Not Applicable",
Set(PowerAppsQueRequired, true),
Set(PowerAppsQueRequired, false)
)

Set the Visible property of the Reason Data card to following formula:

If(
DataCardValue5.Selected.Value = "Not Applicable",
true,
false
)

Set the Required property of the Reason Data card to following:

PowerAppsQueRequired

Please check the attached GIF screenshot for more details:

 

Best regards,

Kris

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.
5 REPLIES 5
jamiewr
Level 8

Re: Hide and then show a data cards based on value in another card

What is you datasource?   How do plan to store their "not applicable" responses?  Is there multiple "not applicable" responses (i.e. one per question) or just one at the end of the whole questionaire/form?

 

Lastly, have you considered using Microsoft Forms instead?   Branching is supported natively in Forms.

 

Good luck,

Jamie

PowerAsh
Level: Powered On

Re: Hide and then show a data cards based on value in another card

Your form would need to already have the section for the comment.
FormExample.png
You will need to select the data card that the reason is in:

Datacard.png

 

Then, change the Visibility to something like: If(DataCardValue4.Selected.Value = "Not Applicable", true, false)

DataCardValue4 is the name of the dropdown that the user would use to choose Completed/Not Applicable. Change this name to whatever it is in your form.

 

Therefore: when "Completed" is selected, the Reason data card will be invisible, and when "Not Applicable" is selected, the Reason data card will be visible.

 

 

Community Support Team
Community Support Team

Re: Hide and then show a data cards based on value in another card

HI @MelodyShults,

I have made a test on my side, please take a try with the following workaround:9.JPG

 

10.JPG

Within the Edit form, set the OnChange property of the Combo Box control within the Question Data card (DataCardValue5) to following:

If(
DataCardValue5.Selected.Value = "Not Applicable",
Set(PowerAppsQueRequired, true),
Set(PowerAppsQueRequired, false)
)

Set the Visible property of the Reason Data card to following formula:

If(
DataCardValue5.Selected.Value = "Not Applicable",
true,
false
)

Set the Required property of the Reason Data card to following:

PowerAppsQueRequired

Please check the attached GIF screenshot for more details:

 

Best regards,

Kris

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.
Highlighted
MelodyShults
Level: Powered On

Re: Hide and then show a data cards based on value in another card

Thanks that worked.

MelodyShults
Level: Powered On

Re: Hide and then show a data cards based on value in another card

Thank you for the additional information.  I got it working but I'll add the addition option that you recommended.

Melody

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 127 members 4,714 guests
Please welcome our newest community members: