cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Erikjn
Frequent Visitor

Compare Passwords

Is ther a way to compare the text input to another text input to verify if they match and based on if they match or not excute a an action? 

For example I have a Form Card Value for a Password, and another Form Card Value to Re-Enter the Password.  If they don't match I want an error message to show.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

If you are using a Save button then you could add an if() to test the condition and if it fails throw an error message instead of submitting the form.

 

Example:

If(DataCardValue1.Text = DataCardValue2.Text, SubmitForm('FormName'), Notify( "Passwords don't match, please try again", NotificationType.Error )



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Jeff_Thorpe
Super User
Super User

If you are using a Save button then you could add an if() to test the condition and if it fails throw an error message instead of submitting the form.

 

Example:

If(DataCardValue1.Text = DataCardValue2.Text, SubmitForm('FormName'), Notify( "Passwords don't match, please try again", NotificationType.Error )



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Thanks So much Jeff, been messing with this for hours!!

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,669)