How do I get Rich Text into a Template Field?

G24
Kilo Sage

In the ServiceNow HRSD product suite, I am configuring an "HR Template" for tasks that will be generated and added to cases.  I used the "choose field" controls to add the "rich_description" field to my template, so that when tasks are created, they will include some instructions.  It looks like this:

NotRichText.png

But as you can see, the actual field I am given to enter the text is not a Rich Text Control.  There are no buttons for adding Bold, Italics, Colors, etc.

 

At runtime, even my newlines are eliminated, and the field shows up like this:

RuntimeRichText.png

 

How can I have ACTUAL rich text defined in my template and have it STAY as rich text and show up that way at runtime in the actual task that is generated?  Thank you.

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@G24

I tried with this and it worked

give the html tags inside the template value

Output:

html inside template.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Sandeep Rajput
Tera Patron
Tera Patron

@G24 Did you try putting HTML inside the rich description field on the template. The HTML would ultimately get converted on the HR Task record.

Viraj Hudlikar
Tera Sage

Hello @G24 

Enter the text in html field over record and copy the content by clicking on source code button which is showed as "<>" then get that content over your template.

VirajHudlikar_0-1738163577256.png

VirajHudlikar_1-1738163594149.png

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Ankur Bawiskar
Tera Patron
Tera Patron

@G24 

Did you try adding html tags and see if that works? try adding <br/> and see if it adds new line

If it doesn't then it means it's not supported

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@G24

I tried with this and it worked

give the html tags inside the template value

Output:

html inside template.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader