The CreatorCon Call for Content is officially open! Get started here.

How to break line in portal

Community Alums
Not applicable

Hi All,

 

I have to break line in portal side. I have used ("[code]<br />[/code]" and "\n" and gs.getMessage("%0D%0A")). But still the line doesnt break. Could you please anyone help on this. What is causing the issue here.

 

Thanks RT

5 REPLIES 5

Sagar Pagar
Tera Patron

Hi @Community Alums,

 

Can you share more details with screenshot here? are you talking about which scripts, where using?

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

Community Alums
Not applicable

Raj126_0-1690281739094.png

output in portal

Raj126_1-1690281781579.png

 

Hi @Community Alums,

 

You need to parse the JSON object and split the comments by "\n" and add it to comments while adding/updating.

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

Hi @Community Alums,

 

Have you look into it? Let me know if you stuck and need any help.

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow