Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Error Handling
Unanswered

Visible If statements with multiple choice

(1) ShareShare
ReportReport
Posted on by 22
Hi everyone,
 
I am hoping this is an easy fix, so any help is appreciated :)
 
I have an Edit Form (formCoffee), that has a bunch of datacards connected via SharePoint. I have specific datacards that I want visible/invisible based on what 'Location' option is selected in a multiple-choice dropdown datacard I have setup. This is the closest I have gotten as an example:

I am wanting the below code to make said datacard only visible if 1 of these 3 locations are selected. Currently it only makes visible 'Headquarters', I assume because it's the first one listed. How can I write this, so it is visible when any of these are selected?

 
If(DataCardValue96.Selected.Value="Headquarters", true ,"Solutions", true ,"Southwoods", true )
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Visible If statements with multiple choice
    Hi there, feels good when you find the solution, right? :)

    you can make the solution simpler this way - 
     
    DataCardValue96.Selected.Value="Headquarters" ||
    DataCardValue96.Selected.Value="Solutions" || 
    DataCardValue96.Selected.Value="Southwoods"
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • cwyn_ah Profile Picture
    22 on at
    Visible If statements with multiple choice
    UPDATE:
     
    I just figured it out hours later haha, here was my solution:
     
    If(Or(DataCardValue96.Selected.Value="Headquarters",DataCardValue96.Selected.Value="Solutions",DataCardValue96.Selected.Value="Southwoods"), 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Error Handling

#1
stampcoin Profile Picture

stampcoin 58

#2
DS-11051211-0 Profile Picture

DS-11051211-0 20

#3
HumanOnly Profile Picture

HumanOnly 6

Overall leaderboard

Featured topics