Issue:
Need to remove spaces users inadvertently leave in fields.
Solution:
Add the following function to your JSHeader:
function DoTrim(fldval) {
return(fldval.replace(/^\s+|\s+$/g, ''));
}
Call it with:
this.value = DoTrim(this.value);
To Trim ALL spaces out of field:
function DoFullTrim(fldval) {
return fldval.split(' ').join('');
}
Call it with:
this.value = DoFullTrim(this.value);
previous page
|