Hi,
I would like to add an icon to a gallery connected to a document library which is only visible if the app user has added an item to a SharePoint list.
The gallery is a document library which shows the user several folders. In the next gallery, they can see the files within those folders.
I have been working on an annotation feature so if the user wants to make a note about a file, they can add it on the app and it will save in a SharePoint list which records the users email and the file name.
Is there a way of making the icon in the gallery visible only if a user has added an item to the SharePoint list?
Thanks
Solved! Go to Solution.
Hi,
You can set below formula on App "OnStart" property
Set(UserName,User().FullName);
and then set the "Visible" property of the icon to the below:
If(ThisItem.'Created By'.DisplayName=UserName,true,false)
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Hi,
You can set below formula on App "OnStart" property
Set(UserName,User().FullName);
and then set the "Visible" property of the icon to the below:
If(ThisItem.'Created By'.DisplayName=UserName,true,false)
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
189 | |
65 | |
46 | |
35 | |
25 |
User | Count |
---|---|
243 | |
106 | |
89 | |
85 | |
64 |