Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created July 10, 2020 22:05
Show Gist options
  • Save ericakfranz/998194ba8e5b6906786ae7c581180e86 to your computer and use it in GitHub Desktop.
Save ericakfranz/998194ba8e5b6906786ae7c581180e86 to your computer and use it in GitHub Desktop.
OM JS Events API example
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