onBeforeValidate

fires when validation has started but is not applied yet

void onBeforeValidate(string|number id){ ... };

Parameters

idstring|numberthe form id

Example

myForm.attachEvent("onBeforeValidate", function (id){
    // your code here
return true;
});

Details

Returning "false" from the event handler will prevent validation

Back to top