URLs are not properly rendered as links in the activity

hmartind
Kilo Expert

When adding comments or work notes via the Activity input box and the "Post" buttons, URLs are not properly rendered as links in the Activity.

They still appear properly in the Comments and Work Notes journal fields, but not in the Activity itself.

Reloading the form does not seem to help.

Do you have any approach to solve this issue?

6 REPLIES 6

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Hector,



What exactly do you mean by the "Activity input field"? Could you post a screenshot? If it's one of the input fields for work notes and plain text those are plain text so it wouldn't show up as a link in there, just in the journal section.


Hello Brad,



Thanks for your answer,



I mean this new UI16 live forms input:


3.png



And this is the output within the activity where an URL is not rendered as a link:



2.png



While in the old output journal field it is:



5.png



Do you know a better approach to render it properly than "hacking" the DOM?



Thanks!


Cheers,


Hector.


4.png


Brad Tilton
ServiceNow Employee
ServiceNow Employee

It looks like you have to use code tags. Here's a pretty good blog post explaining it.



Formatting within Journal fields using HTML & [code]


Many thanks Brad,



Our intention is not to change the behavior of our users but to workaround it ourselves,



Maybe with a Before Insert/Update BR we can add this tags to format the URLS within the comment.



Let me know if you have a better idea



Thanks!


Cheers,


Hector.