Custom validation & prevent form submision

Thanks this looks great
Previously I’ve set the validation on the click event on the button in the onFormReady
Although it’s a ‘click’ event apparently the click is triggered when someone hits enter too
e.g. in quick jQuery

$(submitButton).on('click',function(e){
 if(do some custom validation) {
 e.preventDefault();
 }
}

That code needs to be in the onFormReady and you obviously need to use the correct selectors