cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User
Super User

Re: Compare Passwords

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
Highlighted
Super User
Super User

Re: Compare Passwords

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

Highlighted
Frequent Visitor

Re: Compare Passwords

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

 

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,866)