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 / permission set up for ...
Power Apps
Answered

permission set up for field

(0) ShareShare
ReportReport
Posted on by 28

Hi !

 

I have a simple on start section with the following below:

Set(booIsAdmin,User().Email in ShowColumns(AddColumns(Filter('Admin',Access="Full"),"AdminEmail",'Admin Owner'.Email),"AdminEmail"));
Set(booIsViewOnly,User().Email in ShowColumns(AddColumns(Filter('Admin',Access="View"),"AdminEmail",'Admin Owner'.Email),"AdminEmail"));

EXISTING

currently then on the status field shows this on the displaymode:

If(booIsAdmin,DisplayMode.Edit,DisplayMode.View)

 

PROPOSED

i'd like to make it so admin with full access can edit the field but if the admin has view access they can only view the field.

If(booIsAdmin,DisplayMode.Edit,DisplayMode.View);

If(booIsViewOnly,DisplayMode.View,DisplayMode.View

 

is the proposal right? i get the red lines

Categories:
  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @tiger88 

    As long as boolsAdmin and boolsViewOnly are booleans, try:

    If(
     booIsAdmin,
     DisplayMode.Edit,
     booIsViewOnly,
     DisplayMode.View,
     DisplayMode.View
    )
  • tiger88 Profile Picture
    28 on at

    @DJ_Jamba how do you know if they are truly booleans?

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Glad it worked!

    d(-_-)b

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Look in variables

    DJ_Jamba_0-1709932486663.png

     

    Please post any new question in a new post.

    Thanks!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard