cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to Set Visible Condition on Gallery Icon

I am trying to set a 'right arrow' icon's Visible property.

 

If the following Titles appear in the Gallery field show the arrow, if not hide the arrow.

When I use the '!' the arrow appears on every line. If I don't use the '!' no arrow appears on any line.

 

Is there a way to write the condition to where is the four Titles appear the icon appears on ONLY that line and on all other lines that don't have one of these four titles no icon appears? 

3csman_1-1611935460812.png

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
RandyHayes
Super User
Super User

@Anonymous 

Please consider changing your Visible property Formula to the following:

(ThisItem.MemberProfileGalleryCQTitleFld.Text in 
    "Fitness Text|Medical|Self-Contained Breathing Apparatus Fit Test|Live Fire Refresher|")

No If statement is needed in this formula and, if I understood your logic properly, it should give you what you want.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

JR-BejeweledOne
Super User
Super User

Change your formula here:

 

 If( ThisItem.MemberProfileCQTitleField.Text ..........................

 

Your current formula references the entire gallery rather than the individual item.    You have to use 'ThisItem' to reference a single instance.

 

Here is an example:

 

ThisItem.png



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@Anonymous 

Please consider changing your Visible property Formula to the following:

(ThisItem.MemberProfileGalleryCQTitleFld.Text in 
    "Fitness Text|Medical|Self-Contained Breathing Apparatus Fit Test|Live Fire Refresher|")

No If statement is needed in this formula and, if I understood your logic properly, it should give you what you want.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
JR-BejeweledOne
Super User
Super User

Change your formula here:

 

 If( ThisItem.MemberProfileCQTitleField.Text ..........................

 

Your current formula references the entire gallery rather than the individual item.    You have to use 'ThisItem' to reference a single instance.

 

Here is an example:

 

ThisItem.png



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (3,489)