Avatar

Level 7

I need to remove spaces from a text field in case the end user uses the space bar

to erase text. I found this script on the Forum:

function RLTrim(Cadena){
var str = new String(Cadena);
return str.replace(/(^\s*)|(\s*$)/g,"");
}

I already have JavaScript in the Exit event on this field. I'm not certain where I should put this new script.

Thanks,

MDawn