4 Replies Latest reply on Nov 29, 2010 8:58 PM by Jo_2005

    Replace Characters in a Text Field

    Jo_2005 Level 1

      Hello,

       

      I have a script to replace a carriage return in a text box.

       

      The script is not working when run from the console.

       

      Can any one please advise how the script can be revised to find/replace a carriage return in a multiline text box?

       

      var t = this.getField("ActionAgenda").value;
      t = t.replace("\r","") // delete carriage return

       

       

      Any assistance would be most appreciated.