I\'m using HTML5 form validation to validate my form. So if a Validate it on javascript i can do something like that:
if (isInvalid()) { myControl.setCust