cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cma2438
Level: Powered On

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
pNabin
Level 8

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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

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

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 63 members 4,695 guests
Please welcome our newest community members: