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 create a login ...
Power Apps
Answered

How to create a login page

(0) ShareShare
ReportReport
Posted on by 11

Hi! I'm making a login page that has the users connected to a List in SharePoint. 

 

My problem is that i don't know how to validate the email and password that is in the textfield. i tried with this formula: 

 

If( UserField.Text = Filter(contraseña_prueba2983;Título);
Reset(UserField) & Navigate(HomeScreen;Cover) )

 

But i know i'm comparing a Table with a String and i don't know how to do it. I appreciate any kind of help.

Thank you!!

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,229 Super User 2026 Season 1 on at

    Hi @mAlazraki 

    Here is a similar post that I wrote about creating a login page for Excel. The logic will be the same for a SharePoint data source.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Created-Log-In-But-cant-log-in/td-p/196312 

    Let's suppose that you create an email text box called txtEmailField and password text box called txtPasswordField. This is the formula that you would use.

    If(CountRows(Filter(contraseña_prueba2983; 
     Email=txtEmailField.Text && Password=txtPasswordField.Text))=1;
     Navigate(HomeScreen;cover);
     false
    )
    
    

    The caveat I always add is that this method is not particularly secure. Any user with access to the SharePoint list can see the email and password entries that you store there.

  • Verified answer
    WarrenBelz Profile Picture
    155,927 Most Valuable Professional on at

    Hi @mAlazraki ,

    Try this syntax - note you have not given the field names

    If( 
     Lookup(
     contraseña_prueba2983;
     YourUserField.Text = YourUserFieldName; 
     Título //I assume this is the password
     )=YourPasswordFieldName;
     Reset(UserField);;
     Navigate(HomeScreen;Cover) 
    )

     

    Please click Accept as solution 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 Thumbs Up.

     

  • mAlazraki Profile Picture
    11 on at

    It worked perfectly! thank you very much!!

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

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard