Validate Text input only if it has any value

Hi,

How do I validate a form text input only if it has any value in it? I am using ValidNumeric and ValidDate for some form text boxes. But I want to validate them only if they have any value in it. I don’t want to validate a textbox if it is empty. Thanks.

Just create a custom validation rule as

docs.dhtmlx.com/doku.php?id=dhtm … _extension

dhtmlxValidation.isValidNumericEmpty=function(a){ if (a=="") return true; return this.isValidNumeric(a); } //after that ValidNumericEmpty rule can be used

That was really helpful. Thanks a ton!