Skip to content

Instantly share code, notes, and snippets.

@anil826
Created August 31, 2019 15:56
Show Gist options
  • Save anil826/e3c90f1f95d747b393b0bda807363f18 to your computer and use it in GitHub Desktop.
Save anil826/e3c90f1f95d747b393b0bda807363f18 to your computer and use it in GitHub Desktop.
Validate the Password via Custom JS
$('.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