cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EMohaisen
Helper I
Helper I

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

@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
RandyHayes
Super User
Super User

@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 below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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

 

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

 

@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 below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

@RandyHayes Correct, i am just learning more about PowerApps 🙂

 

also Thanks alot Randy for your usual support!

 

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 (4,575)