Created
August 31, 2019 15:56
-
-
Save anil826/e3c90f1f95d747b393b0bda807363f18 to your computer and use it in GitHub Desktop.
Validate the Password via Custom JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.finish').on('click', function(e) { | |
e.stopImmediatePropagation(); | |
//Check password and throw alert if not == "Welcome@123" | |
if ( formyoula.form_fields['554e-c74b-f697'].get('value') == "Welcome@123") { | |
$('.finish').off('click'); | |
$(this).click(); | |
} else { | |
alert('Warning : Invalid Password !!'); | |
return; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment