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 hide a form fie...
Power Apps
Unanswered

How to hide a form field and set a static value?

(1) ShareShare
ReportReport
Posted on by 2
Hey,
 
I have a Sharepoint list as datasource where the column type is User/Group. The form control now generates a combo box form control. I want to set it now with the current user an the user shouldn't be able to change it. The whole control/data card can be hidden. How to do that?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,757 Most Valuable Professional on at
    Set the DefaultSelectedItems to
    Coalesce(
       Parent.Default,
       {
          Claims: "i:0#.f|membership|: & Lower(User().Email),
          Department: "",
          DisplayName: User().FullName,
          Email: User().Email,
          JobTitle: "",
          Picture: ""
       }
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • AndrewR1 Profile Picture
    1,572 Moderator on at
    Hi to hide the data card when the current user is the selected value you would do something like the following:

    On Visible property of your Data card:
    If(DatacardValue1.Selected.Email = User().email,false,true)

    Hope this helps
     
     
    Please click Accept as the Answerif my post helped you solve your issue. This will help others find it more readily. It also closes the item. Remember, you can accept more than one post as a solution. If the content was useful in other ways, please consider giving it a Like.

     
    Thanks 
    Andrew

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard