web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show/Hide SharePoint l...
Power Apps
Unanswered

Show/Hide SharePoint list fields based on user

(0) ShareShare
ReportReport
Posted on by 60

Hi,

I'm looking for a way to Show or Hide SharePoint list fields based on the user creating/editing a list entry.

 

Example,

When adding a new item in a SharePoint list, based on who is the user that is creating this new entry, I want to show only certain fields,  and those same fields to be hidden if a different user is editing the same list entry.

 

I want to show/hide fields on a  SharePoint list "Add items" and "Edit Item" forms based on the users or users' role.

 

Any help will be appreciated.

 

Thanks,

Categories:
I have the same question (0)
  • 365CornerDawid Profile Picture
    377 on at

    Hey @RaquelF 

    If I get your question right. 
    In SharePoint if you are creating new item in the List the Created By fields is populated with the object of the User who created that entry 🙂
    Next if User who Created item is editing the same item you can check if the Current User = Creator.

    For that you have quite a lot of approaches. The base is to use User() function which returns information like Email - User().Email 
    The result of that function User().Email you can use to compare with CreatedBy.Mail 

    User().Email = CreatedBy.Mail is the giving you boolean result true / false which you can utlize in Visible property of every control = to show / hide fields.

    If I may suggest only to use variable insted of such comparison if all places = better performance 🙂

    Hope it will help you 🙂

  • RaquelF Profile Picture
    60 on at

    Hi @365CornerDawid

     

    Thanks for your reply. I want to have one SharePoint list where entries are created and edit by users with different roles. One role is a super user  that can edit all fields in the "Add" and "Edit" list forms, and the other is simple user that can edit only certain fields in the "Add" and "Edit" list forms.

     

    Is there a way I can create two(2) separate "Add items" list forms where I can customize which fields that are shown.  This way the user that is logged in, based on their user role, will access the list form that I want  them to. The same will apply to the Edit List Form.

     

    Thanks,

    Raquel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard