called before running validation
dp.attachEvent("onBeforeValidate", function(){...});
Can be used to finalize changes.