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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard