Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Line breaks not coming over into UI Pages

aj_becker
Tera Guru

We have a bit of customization built into our incident module to help with Major incidents notifications.  We have a UI action that opens a UI page.  On the UI page, we have a field that copies the values from a field on the incident form(u_mi_email_body).  The problem that we are having is that the value is coming over, but its not picking up line breaks. 

If the incident form says
Line 1
Line 2

It will come over as Line1Line 2   

Below is the line of code that copies that value
<j:set var="jvar_email_body" value="${RP.getWindowProperties().get('u_mi_email_body')}" />
<g:ui_multiline_input_field label="Email Body" name="email_body" value='${jvar_email_body}' size="50" />

 

How do I add a line break within this code to allow the UI page to pick up the line breaks from the incident form?

Please let me know if I need to share more code.

Thank you

 

6 REPLIES 6

Did you ever solve this? Got the same problem. 

I ran into same issue with UI Page. Did you able to resolve this ?

 

Thanks,

Ashish