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  🙂

 

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

 

View solution in original post

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  🙂

 

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

 

View solution in original post

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 🙂

 

also Thanks alot Randy for your usual support!

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 174 members 2,063 guests
Please welcome our newest community members: