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 Apps - Building Power Apps
Answered

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)

 

I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,512 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,512 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 671 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard