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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Visible If statements ...
Power Apps
Suggested Answer

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 )
Categories:
I have the same question (0)
  • cwyn_ah Profile Picture
    22 on at
    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 )
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    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!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard