5 Replies Latest reply on Sep 10, 2012 9:03 AM by easypzmaths

    Carriage return and linefeed return not behaving as expected.

    easypzmaths Level 1

      In my PDF I have a multiline form called OutputText and when I set its value it doesn't display correctly. In the debugger I type either:

      this.getField("OutputText").value="hello\nthere!";

      or

      this.getField("OutputText").value="hello\rthere!";

       

      Then, after Ctrl+Enter, the debugger shows

      hello

      there!

       

      but the OutputText shows:

      hello

      here!

       

      The escape characters \n and \r do not behave properly, they seem to be deleting the character following the escaped one.

       

      Does anyone have any idea why?