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 / Comparing Logged In Us...
Power Apps
Answered

Comparing Logged In User to Submitter

(0) ShareShare
ReportReport
Posted on by

Hello and good morning,
I have two text input boxes whos display mode is set to Disabled.

ChrisL58_0-1716984209536.png

The default for the Submitter is: 

ThisItem.'Created By'.DisplayName
The default for the Logged In User is: 
User().FullName
 
I have some controls on my form that I would like to disable if both of those controls are equal to each other.
When I attempt to do is set the displaymode using If(txtSubmitter.Text) = (txtLoggedInUser.Text), displaymode.Disabled, displaymode.Edit But the formula complains.

Currently I have some logic in the DisplayMode 
If(DataCardValue34.Selected.Value="Corrections Needed",
    DisplayMode.View,DisplayMode.Edit) and this works.

Is it possible to compare two controls like I have?
Categories:
I have the same question (0)
  • Verified answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Hey @ChrisL58 ,

     

    Can you try this? 

     

    If(txtSubmitter.Text = User().FullName, displaymode.Disabled, displaymode.Edit)

     

    This should be Working. 

    I think you closed the Parantheses "(" too soon.

     

  • ChrisL58 Profile Picture
    on at

    Thanks for responding!
    Yes, was driving me a little batty but this worked after I deleted the old controls, added a new custom datacard and inserted two new controls. 

    If(txtLoggedInUser.Text=txtSubmitter.Text,DisplayMode.Disabled,DisplayMode.Edit)
  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Okay perfect,

     

    Could you then accept the answer as solution? 

    This way we can all help each other in the community. Others can find the answer faster and those who want to help can see that this is solved and focus on other Questions. 

     

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard