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 / How To on hiding a for...
Power Apps
Answered

How To on hiding a form field until specific multiple end users access the form

(1) ShareShare
ReportReport
Posted on by 516

I have a requests, to where requestor wants form fields to be hidden until a team of end users access the form.

 

Is there a way to have the visible false until certain people access the form?

Categories:
  • rzuber Profile Picture
    552 Moderator on at

    You can use their EntraObjectID to get the user's unique ID, and check that against a list that defines those authorized users.. You'll have to store the IDs of those who are allowed to access the form.. Either in the app, or in a table somewhere..

     

    Then set the form's Visible property/properties to something like this

    User().EntraObjectID in colAuthorizedFormUsers.EntraObjectID

     

  • SPS-DEV-22 Profile Picture
    516 on at

    I was thinking something like

    field(s) visible = false

    based on Users email address becomes true if it is like where the email address is in code like below

    Where I can set the visible as 

    User().Email="first@company.com"||User().Email="second@company.com"

     

    What I'm trying to figure out is where or how to I capture the End users email address, what is the code for the Visible.

     

    just trying to figure out the switching visible true/false setup

  • Verified answer
    Sam_Fawzi Profile Picture
    1,089 Super User 2026 Season 1 on at

    Hey @SPS-DEV-22 ,

    samfawzi_acml_0-1720622405957.png

    you can access the visible property of the field and set it to something like 

    If(User().Email="first@company.com"||User().Email="second@company.com",true,false)
  • rzuber Profile Picture
    552 Moderator on at

    @SPS-DEV-22 You can use email.. Your formula would work in the Visible property of any control..

     

    I suggest putting what needs to be hidden inside a container, and set the visible property of that container to your User().Email formula..

     

    The 'Or' (||) clause should be used in between each expression. You could also do something like this:

    With(
     {
     _authUsers: [
     "Email1@Host.net",
     "Email2@Host.net",
     "Email3@Host.net"
     ]
     },
     User().Email in _authUsers
    )

     

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard