0 Replies Latest reply on Dec 29, 2008 6:56 AM by (Meabh)

    default text before data entered by user

    Level 1
      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.

      Thanks for the help