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

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
    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.

  • Verified answer
    v-xiaochen-msft Profile Picture
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard