Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Bold text in incident work note

Sraj1
Giga Contributor

How can i make comment enter by user in incident form bold in work note section?

2 REPLIES 2

Munender Singh
Mega Sage

Hello Sraj,

 

Please use the <b>tags to make text bold in work notes:

For eg.

incident.work_notes = "Ticket Number " + incident.number + "\n" + "\n" + incident.work_notes.getJournalEntry(-1) + "\n" + [code]<b>"Detailed Description" </b>[/code]+ "\n" + note;

 

Regards,

Munender

 

**Please mark answer as correct/helpful if it works for you.

Pedro Grilo1
Mega Sage

Hi,

 

Not sure you still need this but probably you can achieve it using the [code] block:

incident.work_notes = "[code]<b>Bold text</b>[/code]";

 

Hope the above helps!

 

Best regards,

Pedro