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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Visible Formula Not Wo...
Power Apps
Unanswered

Visible Formula Not Working

(1) ShareShare
ReportReport
Posted on by 34

Hi,

 

I have a drop down menu with 5 different options.  I also have a 3 different sub options fields to be displayed depending the value selected.

 

For the 3 different sub options, I used these formulas below. The user can select multiple values from the drop down menu and I want to show the sub options based on the value selected. Theoretically all 3 sub options should show up if the specific list items are selected.  The issue I am running into is that only one sub option is showing up even though I selected all the different options.

 

If(DataCardValue4.Selected.Value = "Apple", true, false)

If(DataCardValue4.Selected.Value = "Orange", true, false)

If(DataCardValue4.Selected.Value = "Cherry", true, false)

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at
    Re: Visible Formula Not Working

    Hi @Poweruser811,

     

    .Selected.Value will only return the last selection (in the context of multi-select comboboxes). In order to check whether your value is present within one of the selected values, use the following structure instead:

     

    //Sub option 1 visible property
    "Apple" in DataCardValue4.SelectedItems.Value
    
    //Sub option 2 visible property
    "Orange" in DataCardValue4.SelectedItems.Value
    
    //Sub option 3 visible property
    "Cherry" in DataCardValue4.SelectedItems.Value

     


    If this solves your question, would you be so kind as to accept it as a solution✔️

    If you liked my solution, please give it a thumbs up👍

     

    Connect with me: LinkedIn | Blog

  • Poweruser811 Profile Picture
    34 on at
    Re: Visible Formula Not Working

    Its not taking the formula, did I miss something? 

    Poweruser811_0-1715379554953.png

     

  • Poweruser811 Profile Picture
    34 on at
    Re: Visible Formula Not Working

    Its strange, I reentered it again and it worked. Thank you so much!

  • LaurensM Profile Picture
    12,516 Moderator on at
    Re: Visible Formula Not Working

    My apologies @Poweruser811, it seems that I did not capitalize the I. It should be SelectedItems instead of Selecteditems.

     

    I have adjusted the code in my previous comment accordingly.

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard