Skip to main content

Notifications

Community site session details

Community site session details

Session Id : PLmKhv5LQKZjBdhRB6pQa/
Power Apps - Building Power Apps
Answered

Power app Login/Password Validation

Like (0) ShareShare
ReportReport
Posted on 11 Sep 2022 11:35:07 by

Hello Everyone,
I am new to Power app and if someone can help me out will be really helpfull.

I have created a login page. I have a email-id field and password field. I have 2 buttons "Clear" "Login"

PD1231_0-1662888922122.png

 

I have to add validation to each textinput field. I have created a dataverse table with same name as it is show here. Email and Password
Login button code is:- If(!IsBlank(LookUp(Admin,Email=TextInput2.Text&&Password=TextInput3.Text).Email),Navigate(Success,ScreenTransition.Fade),UpdateContext({ShowForgetMessage: true });Notify("Incorrect Login Details",NotificationType.Error));
I have inserted a icon near input textbox and I want:-
1) If I input an email which is present in dataverse table with extact same word then only it should show check icon else it should show cancel icon
Currently I have use this code 

PD1231_0-1662895864320.png

 

PD1231_1-1662895899145.png

this is the output I get any mail id with @ and .com is accepted but this should not be accepted becuase the above email id is not present in the database

 

2) I want to add case sensitivity also to password field

If anyone know please help me out

Thanks in advance

  • Verified answer
    AhmedSalih Profile Picture
    6,678 Super User 2025 Season 1 on 12 Sep 2022 at 13:26:45
    Re: Power app Login/Password Validation

    @Anonymous, EDITED: IsMatch need a constant value (Forgot about that)

    Your comparison values should be Text and you can use the If Statement once you have them as text.

    If(Text1=Text2,true,false) << this will be case sensitive.

     

     

     

    If my reply helped you, please give a đź‘Ť , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • Community Power Platform Member Profile Picture
    on 12 Sep 2022 at 05:10:46
    Re: Power app Login/Password Validation

    Hello @AhmedSalih ,
    Thanks for replying for my query.
    Yes it worked but It is still not case sensitive. Can you please help me out with that as well?
    I want case sensitive special for password field.

  • Verified answer
    AhmedSalih Profile Picture
    6,678 Super User 2025 Season 1 on 11 Sep 2022 at 14:16:53
    Re: Power app Login/Password Validation

    Hello, @Anonymous, in the Icon property use this formula instead:

    If(!IsBlank(LookUp(Admin,Email=TextInput2.Text),Icon.Check,Icon.Cancel)

     

     

    If my reply helped you, please give a đź‘Ť , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 32

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 24 Super User 2025 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 18 Most Valuable Professional

Overall leaderboard
Loading started