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 / Compare two Input fields
Power Apps
Answered

Compare two Input fields

(0) ShareShare
ReportReport
Posted on by 986

Hi everyone,
I was designing the Reset password functionality in Power apps. Usually we see there are 2 fields i.e. New Password and Confirm Password. So I wanted to implement the same logic in Power apps where user has to enter the same password in both the fields and if it is not matching then error message should be shown (without navigating to any other screen) else if both the fields contain the same password then only the Confirm password field must be set in the SharePoint list (as my SharePoint list has only 1 field which is password)

App users list: This list contains the list of members who can login to the application

Sidhant_02_0-1673335469686.pngSidhant_02_1-1673335596066.png

So on Submit button how to check both the input text boxes before using the Patch function: How to patch the confirm password value only in the Share Point list.

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Sidhant_02 ,

     

    I made a sample for you.

    vxiaochenmsft_0-1673405033686.png

    vxiaochenmsft_1-1673405042642.png

    If(newpswd.Text<>confirm_pswd.Text||IsBlank(newpswd.Text)||newpswd.Text=Blank()||IsBlank(confirm_pswd.Text)||confirm_pswd.Text=Blank(),Notify("Pswd is blank or not same",NotificationType.Error),Patch(...))

     

    Best Regards,

    Wearsky

  • Sidhant_02 Profile Picture
    986 on at

    Thanks Wearsky for the sample, I will check this.

    Regards,

    Sidhant

  • Sidhant_02 Profile Picture
    986 on at

    Hi Wearsky,
    I did implement the solution which you suggested and it worked. Thanks for the solution

    Sidhant_02_0-1673505066762.png

    I did leave the field as blank and entered different passwords (above image) and tried to submit and a notification is displayed.
    Just had a another query which was implement log off functionality in my App, for now I was thinking of adding a button at top of the screen and OnSelect-> Navigate(Login Screen), but is there any other solution for it (I tried using Exit(), but it did not work)

    Regards,
    Sidhant.

    Capture.PNG
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Sidhant_02 ,

     

    I think your solution is good enough.

    If you want to reset your 2 text input control, please try:

    Reset(textinput1);Reset(textinput2);Navigate(login screen)

    Exit() function is use to shut down the app and it cannot meet your requirement.

     

    Best Regards,

    Wearsky

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard