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.

How to add HTML content in Task description

wakespirit
Kilo Guru

Dear all,

We have a case where I need to create a Task by populating description with HTML content.

I have seen from table that Description is pure string text.

Do I have to add a new box which accept HTML ?

Do I have to create a new taskTable wich inherit from task where I can add an HTML block content

What is the process to do ?

regards

7 REPLIES 7

Kalaiarasan Pus
Giga Sage

I would add a custom HTML field and use it if I require HTML content. I would leave the out of the box description field as is.

Just for testing I have added an extra field define as HTML content.

it then produce an HTML editor where I have injected my HTML text from script.

The issue is that I can see html link I have created, but it is not clickable...

I need to right click on it and select Open in new window to get the link

 

Any reason for that ?

How to make my link clickable as in normal web page ?

Is tehre a way to make the HTML field not editable and beeing pure rendering ?

 

regards

Can you share how you wrote it?

I just edit the link in the field thats, it...

But a HTML type shows an HTML editor, as you are in edition it cannot be click...