How to add line break in mailto script for the reply body

Tricia3
Kilo Contributor

I have a mail script that sends an email with buttons for custom approve or reject on the incident task table.

They are not approvals just acknowledgements.

I am adding the watermark to the reply body, but I also need to add some default content and have the watermark on another line under that. The below works but everything is on a single line

I want to have the TXT on the first line and then the watermark on the second line under that..

I tried <br/> "\n" and can't seem to get it to work like I would like.

 

Any help would be much appreciated.

Thank you

Tricia

find_real_file.png

 

1 ACCEPTED SOLUTION

User664605
Kilo Guru

Hi ,

Please try the following expression 

 %0D%0A

and refer the below link as well for better clarity

https://stackoverflow.com/questions/22765834/insert-a-line-break-in-mailto-body/25634014

 

Thanks,

Sameekshya

Please mark the answer as helpful and Correct if it solves your issue..!!!

View solution in original post

4 REPLIES 4

Anurag Tripathi
Mega Patron
Mega Patron

template.print('<br />\n'); should wrk, i have used this before.

-Anurag

chirag_bagdai
ServiceNow Employee
ServiceNow Employee

for line break you can use "%0D%0A"

User664605
Kilo Guru

Hi ,

Please try the following expression 

 %0D%0A

and refer the below link as well for better clarity

https://stackoverflow.com/questions/22765834/insert-a-line-break-in-mailto-body/25634014

 

Thanks,

Sameekshya

Please mark the answer as helpful and Correct if it solves your issue..!!!

Thank you that was exactly what I needed!