This topic contains 3 replies, has 0 voices, and was last updated by dmatyas 10 years, 3 months ago.

  • Author
    Posts
  • #10263

    MChamma

    Does anyone know how to add a new line in a popup box from workflow? In html it is
    or n in javascript.
    This is a cached copy. Click here to see the original post.

  • #10264

    dmatyas

    Hi,

    it’s not possible at the moment. I will create enhancement for it.

    Thanks,

    Daniel

  • #10265

    sklett

    NetSuite has a bug (not an enhancement) that double escapes already escaped character sequences. You can see this by inspecting the JS that is generated from the Action:

    I typed the following into the ShowMessage Action Text field:

    This is a popup dialog box n RAR!

    The generated script looks like this:

    alert(‘This is a popup dialog box \n RAR!’);

    As you can see the double escape is the problem. SO… if you must have multiline alert popup I would create a custom Script Action, it would be dead simple and you can control the string that is passed to the alert function.

  • #10266

    dmatyas

    Well, escaping of the whole text is desired functionality. No one should be writing it’s own escape sequences to the text. The enhancement lies in translation of new line character into HTML new line tag which is not supported at the moment.

You must be logged in to reply to this topic.