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 / Icon visible/Not visib...
Power Apps
Answered

Icon visible/Not visible when text of a dropdown does not appear in a Gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

 

I am simply trying to add the warning icon to appear when : The text selected in the Staff Dropdown (Dropdown 12) is equal to any of the staff names that appear in the gallery on the left. So in the case below, they have selected Ceo so that is fine, but if they selected either 'Cathy' or 'Anna' i would want the icon to be visible. I thought i would look at the gallery.Allitems.Staff but this doesnt work. 

 

I can get this to work if i do Visible property of Icon = If(Dropdown12.SelectedText.Value = Subtitle2_13.Text && Form1_1.Mode <>FormMode.View, true, false) but when i do it this way it will only pick up what is in the Subtitle2_13 - so if i pick Anna from the staff drop down it the icon appears (which is what i want)  and then i pick someone else who is not in the gallery it disappears (again is what i want)  BUT when i pick Cathy (appears in the gallery) the icon does not show (NOT what i want)

Mickowl_0-1652700341014.png

 

Any help appreciated

 

Thanks

 

Michael 

Categories:
  • RoboHeart Profile Picture
    65 on at

    Hi @Anonymous 

     

    if I got it right than you just need to write something like this:

    If(Dropdown12.SelectedText.Value = FilterTestGallery_2.Selected.Staff && Form1_1.Mode <> FormMode.View, true, false)

    because you just want to compare it with the selected item in the gallery, right?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, thanks for replying.

     

    I want to compare it to ALL the names in the gallery - so in the screenshot you can see 2 names - Cathy and Anna - On another date there could be 1 there could be 12 names in that gallery - i want it to look at all the names in the gallery and show me the Icon if they pick any of those 12 names in the Staff dropdown - so not just looking at the selected item.

     

    Thanks 

  • Verified answer
    RoboHeart Profile Picture
    65 on at

    Ah, got it.

     

    This should work:

    If(Dropdown12.SelectedText.Value in FilterTestGallery_2.AllItems.Staff && Form1_1.Mode <> FormMode.View, true, false)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi RoboHeart

     

    Thank you for that - works perfectly!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard