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 / Multiple Choices and V...
Power Apps
Answered

Multiple Choices and Visibility not working

(0) ShareShare
ReportReport
Posted on by

I have 3 choices in my Combo box. I am having issues with if i choice "Single" to only show those boxes. If i choice "Three", only three. If i choice Subdivision, Only Subdivision shows. 

swoodall123_0-1670329226499.png

 

swoodall123_1-1670329226787.png

 

 

have 3 hoices : Single Phase, Three Phase and Subdivision. With the formula that i am using, it is telling me that i have an unexpected Character and i don't know what i am missing. In the picture below is what i have in my formula, the Three Phase and Subdivision doesn't go away when i pick Single, etc. I am needing to have Three and Subdivision to go away when I pick Single. Then when i pick Three, Single and Subdivision go away and only show Three. 

 

If(DataCardValue152.Selected.Value="Single Phase", UpdateContext({Single:true}), If(DataCardValue152.Selected.Value="Three Phase", UpdateContext({Three:true}), If(DataCardValue152.Selected.Value="Subdivision", UpdateContext({Sub:true}))

 

swoodall123_2-1670329274754.png

 

 

Please Help 

Thank you 

 

Categories:
I have the same question (0)
  • MarcelLehmann Profile Picture
    378 on at

    I would recommend you something like this...

     

    Put that to the visible for example:

    DataCardValue152.Selected.Value in ['Single Phase','Three Phase']

     

    The thing's in the [] you could define on each phase and you don't need a variable like updatecontext 

     

  • Sarahneedinghelp Profile Picture
    on at

    @MarcelLehmann 

    I don't understand. Don't I need to tell the dropdown something and then the Visibility of the boxes? 

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @swoodall123 

    You are making it more complicated that it needs to be.  You don't need UpDateContext or If() to accomplish your goal:

    Simply set the Visible property of the box to DataCardValue152.Selected.Value="Single Phase"

    or DataCardValue152.Selected.Value="Three Phase" for example.  No If() is required because the equation reduces to either true or false by itself.  If you wanted it to be visible for both Single Phase and Three Phase you could set the visibility of the box to:

    DataCardValue152.Selected.Value = "Single Phase" || "Three Phase"

     

  • Sarahneedinghelp Profile Picture
    on at

    @Drrickryp  thank you so much. I knew I was overthinking it. 😀

  • MarcelLehmann Profile Picture
    378 on at

    @swoodall123 
    this was the shorter version of the solution from @Drrickryp 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard