cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rafikbenk
Frequent Visitor

datacards

Hello, 

i am new to powerApps, and facing some issues with activation/deactivation of datacards.

basically i have DataCardValue15 witch is a list with several choices and i would like to activate DataCardValue13 (witch is a list as well) based on the content selected on DataCardValue15

----------------------- i am trying this , without success there is no error bur DataCardValue15 is always disabled regardless of DataCardValue15 choice.

 

DataCardValue13

DisplayMode = If(DataCardValue15.Selected.Value = "Equipment" ;DisplayMode.Disabled;DisplayMode.Edit)

 

Thanks for any help

1 ACCEPTED SOLUTION

Accepted Solutions
JR-BejeweledOne
Super User
Super User

Ok, your formula is backwards.  It looks like you are using a different language version of Power Apps.  Is your separator for these commands a ';'?  If so, try the formula below as is, if your separator should be a comma please replace the ';' with commas.

 

 If(DataCardValue15.Selected.Value = "Equipment" ;DisplayMode.Eidt;DisplayMode.Disabled)

  



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

6 REPLIES 6
JR-BejeweledOne
Super User
Super User

Can you put a label somewhere on the screen and set it's text value to DataCardValue15.Selected.Value and verify that the value is what you expect?



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
Rafikbenk
Frequent Visitor

Thanks for the reply; 

the label picks up the right selection from DataCardValue15.Selected.Value

Rafikbenk_0-1645104665754.png

 

JR-BejeweledOne
Super User
Super User

DisplayModes for data cards can be strange.  Let me just verify, if the selection in DataCardValue15 is 'Equipment', you want DataCardValue13 to be disabled, but if it's not 'Equipment' it should be in edit mode?

 

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
Rafikbenk
Frequent Visitor

if the selection in DataCardValue15 is 'Equipment', i want DataCardValue13 to be in edit mode ,

if DataCardValue15 is not 'Equipment' i want DataCardValue13 to be disabled

JR-BejeweledOne
Super User
Super User

Ok, your formula is backwards.  It looks like you are using a different language version of Power Apps.  Is your separator for these commands a ';'?  If so, try the formula below as is, if your separator should be a comma please replace the ';' with commas.

 

 If(DataCardValue15.Selected.Value = "Equipment" ;DisplayMode.Eidt;DisplayMode.Disabled)

  



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
Rafikbenk
Frequent Visitor

It worked thanks a lot;  i will apply it to all required cases; then will move to my next issue 🙂 i have a list of them 

Thanks again 

Rafikbenk_0-1645113788409.png

 

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 (2,202)