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 / 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
    36,415 Super User 2025 Season 2 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
    153,117 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard