web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Visible if Dropdown va...
Power Apps
Answered

Visible if Dropdown value is one of many choices

(0) ShareShare
ReportReport
Posted on by 46

Hello Group!

 

I have a form where I want to show/hide visibility to several datacards based on the selection from the dropdown menu. 

DataCardValue13 - stores my dropdown list.  The list is:

  • Burn
  • Caught by
  • Struck by
  • Alergic Reaction
  • Vehicle
  • Chemical
  • Food
  • Missing Property
  • Miscellaneous

The goal is to show DataCard1 if DataCardValue13 equals: Burn, Caught By, Struck by, Alergic Reaction

However Hide DataCard 1 if DataCardValue13 equals: Vehilce, Micellaneous or Missing Property

 

I have several DataCards I want to show/hide based on the selection from DataCardValue13

 

Can I do this?  It has to be a visible if AND command but I just can not figure it out.

 

Thank you in advance!

 

Categories:
I have the same question (0)
  • Damin Profile Picture
    63 on at

    Hello, I advice you  to use Business Rules

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Will_Y 

    Nonsense!.  Set the Visible property of the card to  

    DataCardValue13.Text = Or( "Burn", "Caught By","Struck by", "Allergic Reaction")

    This formula reduces to either true or false. 

  • Will_Y Profile Picture
    46 on at

    Could you give me the whole formula you are referring to?  When I enter what you listed in the Visible property it does not work.  The .text is not a valid function.  I also tried the below which did not work 😞

     

    DataCardValue18.Selected.Value = Or("Burn", "Theft", "Stolen Vehicle")

     

    Thanks

  • AaronKnox Profile Picture
    514 Super User 2024 Season 1 on at

    You may want to try:

    DataCardValue18.Selected.Value in ["Burn", "Theft", "Stolen Vehicle"]
  • Verified answer
    Will_Y Profile Picture
    46 on at

    Just wanted to share the solution I found.  The challenege what to display a field only if one of these selections was chosen otherwise keep the field hidden.  By stacking the selected value using the "||" command I was able to get it to work.  Basically if any of these values where selected the visible field was "true" otherwise "false".

     

    Hope this helps others.

     

    If(

    DataCardValue18.Selected.Value="Burn"

    ||

    DataCardValue18.Selected.Value="Allergic  Reaction"

    ||

    DataCardValue18.Selected.Value="Assault"

    ||

    DataCardValue18.Selected.Value="Caught in/by/between"

    ||

    DataCardValue18.Selected.Value="Chemical"

    ||

    DataCardValue18.Selected.Value="Death Investigation"

    ||

    DataCardValue18.Selected.Value="Food Illness"

    ||

    DataCardValue18.Selected.Value="Improper Lifting"

    ||

    DataCardValue18.Selected.Value="Insect Bites"

    ||

    DataCardValue18.Selected.Value="Medical Aid"

    ||

    DataCardValue18.Selected.Value="Slip/Trip/Fall"

    ||

    DataCardValue18.Selected.Value="Struck by object"

    ,true,false)

     

    Same formula just without breaks:

    If(DataCardValue18.Selected.Value="Burn"||DataCardValue18.Selected.Value="Allergic Reaction"||DataCardValue18.Selected.Value="Assault"||DataCardValue18.Selected.Value="Caught in/by/between"||DataCardValue18.Selected.Value="Chemical"||DataCardValue18.Selected.Value="Death Investigation"||DataCardValue18.Selected.Value="Food Illness"||DataCardValue18.Selected.Value="Improper Lifting"||DataCardValue18.Selected.Value="Insect Bites"||DataCardValue18.Selected.Value="Medical Aid"||DataCardValue18.Selected.Value="Slip/Trip/Fall"||DataCardValue18.Selected.Value="Struck by object",true,false)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard