var a = getField("case");
var re = /^\s*/;
a.value = a.value.replace(re, "Trust of ");
I'm using the above script to add default text to a text field and it needs a little refining. It adds the text but each time the field is entered it continues to add the text. I don't know how to make this a one shot addition.