This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
I have 62 fields that needs to be verified, So I am wondering how to pass the name of the field instead of the value I guess.
The function I found on the site kind of does it, I modified it but I cannot have 62 functions of course...
This is in my field
this.value = validateChar( this.value );
This in the JSheader
// validation of all fields for P or T or ""
function validateChar( TP ) {
if(document.IND_PPL_1 != "" || document.IND_PPL_1 != "T" || document.IND_PPL_1 != "P") {
alert("Enter only, T , P or nothing.");
document.IND_PPL_1.focus();
return false
}
any help would be great!
thanks
Paul
Feedback response number WEBB8EYMT9 created by ~Olga Bubkrovitch on 03/15/2011