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

Automatically Hide DataCards based on choice field value

Hi All,

 

I have a sharepoint list connected to my PowerApps form, i would like to hide a sharepoint datacard based on specific value from a sharepoint choice field.

 

my problem is when i use  If(SBU.Value = "MED", true, false) i need to save the form first then it will work.

 

what i need is to hide\un-hide the data card immediatly once i change the SBU value "while i am still on the edit view"

 

i have attached a screenshot

 

thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
EMohaisen
Level: Powered On

Re: Automatically Hide DataCards based on choice field value

@RandyHayes Thanks, actually i have tried the following and it's working  Smiley Happy

 

If(DataCardValue8.Selected.Value= "MED", true, false)

 

4 REPLIES 4
Super User
Super User

Re: Automatically Hide DataCards based on choice field value

@EMohaisen 

Look at your DataCard for SBU, there should be a DataCardValuexx control in it.

 

Use that control rather than the value of SBU as, like you said, it hasn't been updated yet.

 

So instead, for your DataCard you want to Hide/Show, set the Visible Property to:

   (DataCardValuex.Value="MED")

Just replace the DataCardValuex with the name of the control in your SBU Datacard.

 

I hope this helps you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
EMohaisen
Level: Powered On

Re: Automatically Hide DataCards based on choice field value

@RandyHayes Thanks, actually i have tried the following and it's working  Smiley Happy

 

If(DataCardValue8.Selected.Value= "MED", true, false)

 

Super User
Super User

Re: Automatically Hide DataCards based on choice field value

@EMohaisen 

Yup, same formula - you just don't need all the true false stuff.

Glad you have a solution.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
EMohaisen
Level: Powered On

Re: Automatically Hide DataCards based on choice field value

@RandyHayes Correct, i am just learning more about PowerApps Smiley Happy

 

also Thanks alot Randy for your usual support!

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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

Top Kudoed Authors
Users Online
Currently online: 363 members 5,144 guests
Please welcome our newest community members: