Change font of additional comments text

sriram35
Kilo Guru

Hi,

 

How can I change the font of the additional comments text? 

Currently, the font of the additional comments is Times New Roman but I would like to make it Arial. Is this possible?

4 REPLIES 4

Harsh Vardhan
Giga Patron

is it for notification or form activity ?

 

For notification refer the link below

 

Updating Customer Visible Comments Font in Email Notifications

 

For Activity please refer the HI article. 

 

Change size/font style of text in the Activity Journal fields Work Notes or Additional Comments

Willem
Giga Sage
Giga Sage

"There is currently no method for changing the default font or size of the text entered into the Activity stream. " - Last updated 2020-06-15

 

Having said that, you can use a Business rule to add HTML for the styling.

You should try with a Before business rule:

find_real_file.png

 

find_real_file.png

 

The code:

(function executeRule(current, previous /*null when async*/) {

	current.comments = "[code]<p style='font-family:verdana'>"+current.comments +"</p>[/code]";

})(current, previous);

 

However it will show you the HTML and original text:

find_real_file.png

You can circumvent this by having a new field that replaces the "Additional comments" field. Then it works.

Found this in the old wiki:

https://old.wiki/index.php/Implementing_HTML_in_Comments

Willem
Giga Sage
Giga Sage

Hi Siram,

Hope you are doing well.

Is your question resolved? Or do we need to follow-up on this?

Please mark this answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.

Kind regards,

Willem