logo

NJP

Adding Multiple Lines/Line Breaks to a Description using Flow Designer

Import · Feb 01, 2019 · article

This is just a quick article which I hope people will find useful.

I was using Flow Designer to populate a task record's Description field using the "Create Task Record" action that comes with the Flow Designer Service Catalog plugin.

I needed to insert line-breaks into the Description field so that I could separate fields from the Catalog Variables - for example:

Do something with this Widget.

Name of submitter:

Name of widget:

After getting some helpful suggestions online (hi SNdevs!) I found a solution for adding line breaks was to encapsulate the entire string (including data pills) in a Javascript string using \n line breaks.

For example, the syntax for the above description would be:

javascript: "Do something with this Widget. \n Name of Submitter: {{submitter data pill}} \n Name of Widget: {{widgetname data pill}}"

I hope someone else finds this useful!

View original source

https://www.servicenow.com/community/now-platform-articles/adding-multiple-lines-line-breaks-to-a-description-using-flow/ta-p/2326258