I'm looking to write a JavaScript that can read the value of a hidden field,
and then check to see if the first 4 characters is equal to a string.  Does
anyone know how to do this?

I've tried this script, but "substr" is not a valid method.

var MyField = this.getField("ID");
var MyStr = MyField.value;
app.alert(MyStr.substr(1,4));

thanks
Bill

<<attachment: winmail.dat>>

Reply via email to