Showing results for 
Search instead for 
Did you mean: 
Level 8

Conditional visibility based on collection text

Is it possible to set the visibility property of an item to true if a certain text phrase is in a collection:

For ex:

If(colName.Result = "Text Phrase", true, false)

Or something along these lines?

Super User
Super User

Re: Conditional visibility based on collection text

Could you be more specific with regards to where you are viewing the collection.  Do you want to filter the collection for the phrase and show only the records that contain the phrase in a gallery or do you want to blank out an item in a gallery? 

Community Support Team
Community Support Team

Re: Conditional visibility based on collection text

The formula should be written as below:

If("Text Phrase" in colName.Result , true, false)

If you would like to check if the Text exists in the Collection Result field.


Let me know if you have any further questions.




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.


Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 187 members 5,309 guests
Please welcome our newest community members: