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 / Loging Screen (issue)
Power Apps
Answered

Loging Screen (issue)

(0) ShareShare
ReportReport
Posted on by 52

I'm building an app with a login screen, if the user provides a true login and password, I want him to be redirected to Home screen if not to Error Screen.

crazor123_0-1679074537117.png
All data about user and pw will be stored in a sharepoint list:
Sharepoint listname = user_logins

crazor123_1-1679074596833.png
Screen buildes and textinput

crazor123_2-1679074654937.png

Code i'm trying to use = 

If(!IsBlank(Lookup(users_logins;Title= TextInput1.Text and Password= TextInput2.Text).Title;Navigate(Home);Navigate(ErrorScreen))

 

crazor123_3-1679074713346.png

 

 

Any help with the code would be great, thx


Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @crazor123 ,

     

    I think you added semicolon after title which is wrong .

     

    If(!IsBlank(Lookup(users_logins,username= TextInput1.Text and Password= TextInput2.Text).Title;Navigate(Home);Navigate(ErrorScreen))

     

    Thanks,

     

  • crazor123 Profile Picture
    52 on at

    I've tried the adjustment , still not working. (i'm using the Dutch version).
    The error message says, he expects parentclose, and there is an issue with the lookup function

    crazor123_0-1679077846938.png

     

     

  • vikas1606 Profile Picture
    206 on at

    Hi @crazor123 ,

    It seems to issue in an If condition.  Use the below statement and let me know.

     

    If(!IsBlank(Lookup(users_logins;Title= TextInput1.Text and Password= TextInput2.Text).Title),Navigate(Home),Navigate(ErrorScreen))

  • crazor123 Profile Picture
    52 on at

    If(!IsBlank(Lookup(users_logins;Title= TextInput1.Text and Password= TextInput2.Text).Title),Navigate(Home),Navigate(ErrorScreen))

    Same issues, 1 new issue, he doesn't reconigze title.


  • vikas1606 Profile Picture
    206 on at

    Use this, This time, you should not have the issue. 

     

    If(!IsBlank(LookUp(users_logins,Title= TextInput1.Text && Password= TextInput2.Text).Title),Navigate(Home),Navigate(ErrorScreen))

  • crazor123 Profile Picture
    52 on at

    Still no go 😞

  • zuurg Profile Picture
    546 Super User 2024 Season 1 on at

    Your closing parenthesis for !IsBlank is in the wrong place.  I replicated your app and it works for me (note that your semicolons are commas for me:

     

    If(
     !IsBlank(
     LookUp(
     users,
     username = TextInput1.Text && password = TextInput2.Text
     ).username
     ),
     Navigate(scrSuccess),
     Navigate(scrError)
    )
  • Verified answer
    zuurg Profile Picture
    546 Super User 2024 Season 1 on at

    Note that in the fake list I created to test out your situation, I renamed the Title field to username (which normally you shouldn't do.  If you did the same, that's probably why it isn't recognizing Title, you need to be trying to match username instead.

  • crazor123 Profile Picture
    52 on at

    I've rebuilded the app from scratch, new list.
    And used your code and changed the comma with ; and works.

    If(
    !IsBlank(
    LookUp(
    user_logins;
    Title= TextInput1.Text && password = TextInput2.Text
    ).Title
    );
    Navigate(Home);
    Navigate(Error)
    )

    Is there a reason why dutch users need to use ; instead of comma? (i changed language to English) doesnt make a difference.

     

    Anyways thx!

  • zuurg Profile Picture
    546 Super User 2024 Season 1 on at

    I'm not really sure.  If you use commas over there as a decimal separator instead of a period, that might be why - to avoid confusion with numbers?

     

    I'm happy you got it working.  🙂

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
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard