Hi, Is it possible to change the ‘invalidMessage’ for the control dynamically (at runtime) within the custom validation function based upon what validation fails?
Hi,
you can change “invalidMessage” in “onValidationError” handler:
$$("myForm").attachEvent("onValidationError",function(key,dataObj){
if(key == "email"){
var message = ....
$$("email").define("invalidMessage", message );
}
});
Thank you, perfect! This is a great product, please keep up the good work. After a little more testing, I will be purchasing a commercial license.