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

Remove Specific item from Gallery based on text

Hello,

 

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))

1 REPLY 1
Advocate IV
Advocate IV

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

 

 

Thanks,

Nabin

 

 

 

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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