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 / 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,099 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard