cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Advocate IV
Advocate IV

Re: Remove Specific item from Gallery based on text

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,490)