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 / Password setup- these ...
Power Apps
Answered

Password setup- these types can't be compared- error, text

(0) ShareShare
ReportReport
Posted on by 28

Hi everyone,

I'm trying to add an admin login for an app I'm building and I can't figure out the coding error I keep getting.

The code is here:

If(passwordfield.text = "sampletext", Navigate(adminsettings), Navigate('admin login',Reset(passwordfield))

The error I'm getting is: "Incompatible types for comparison. These types can't be compared: Error, Text."

 

Please help!!
Thank you

Categories:
I have the same question (0)
  • timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    Hi @twarb 

    I assume this is what you're trying to do. If the password that the user enters matches "sampletext", navigate to the adminsettings screen. Otherwise, navigate to the 'admin login' screen.

     

    If(passwordfield.text = "sampletext", 
     Navigate(adminsettings), 
     Navigate('admin login');
     Reset(passwordfield)
    )

     

  • C-Papa Profile Picture
    1,836 on at

    try the below

     

    If(passwordfield.text = "sampletext", Navigate(adminsettings), Navigate('admin login');Reset(passwordfield))

  • Verified answer
    jbrit2020 Profile Picture
    634 on at

    Do this:

     

    If(passwordfield.Text = "sampletext", Navigate(adminsettings), Navigate('admin login');Reset(passwordfield))

  • twarb Profile Picture
    28 on at

    this one worked, thank you mate!

  • jbrit2020 Profile Picture
    634 on at

    Glad the community could help. Mark whichever answer that gave you the solution as correct.

     

    Regards

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard