Created
July 10, 2020 22:05
-
-
Save ericakfranz/998194ba8e5b6906786ae7c581180e86 to your computer and use it in GitHub Desktop.
OM JS Events API example
This file contains hidden or 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
document.addEventListener('om.Form.validate', function(event) { | |
// ...custom validation code here | |
if (validateError) { | |
event.detail.Form.errors.validate.push('This is the error message') | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment