Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Remove Specific item from Gallery based on text



I have an app that when it opens determines the users job title and determines if they have Auto Approval or they need Manager Approval for submitting a form.


In one of the Galleries I have an item that i want to hide if the user needs manager approval. Im not sure if I need to do this on the start of the application and Remove it from the collection or when the gallary is visable.


This is essentially what i am trying to do

IF(ManagerApproval.Text <> "Auto Approval On", Remove(MyCollection.Primaryid: 9))

Advocate V
Advocate V

Hi @cma2438 ,


The best way to hide the items in the Gallery is to filter the Gallery Items.
In the Items property of Gallery, you should have something like

Items = Filter(MyDataList, Approval="Needed")

In this, MyDataList is the data source of the Gallery, Approval="Needed" is the filter criteria that shows only the items whose Approval is "Needed".


Your situation would be something like
Filter(MyCollection,ManagerApproval = "Auto Approval Off"), assuming MyCollection is the name of Collection, ManagerApproval is the filtering field








Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (2,240)