Can we Change the Work notes and Comments to rich Text

sudhakar kondap
Tera Contributor

sudhakarkondap_0-1744628495509.png

i mean like this will it be possible , if so please help me with it ?

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@sudhakar kondap 

those are journal fields and data for it is stored in "sys_journal_field" table

Remember work_notes and comments can render HTML content in it by using [code] [/code] tags

Although technically you can change the field type but I won't recommend

Instead do this

1) create a custom field of type HTML

2) add that on form

3) then use before insert/update business rule to copy value from that HTML field to work_notes or comments and clear the new field

(function executeRule(current, previous /*null when async*/) {
       current.comments = '[code]' + current.getValue('myField') + '[/code]';
       current.u_notes = '';
})(current, previous);

This might not work fine with POST button on UI

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  Hello, Is there a way we can provide Post button for the same?

we have a requirement to add Post button for Rich worknotes.

 

Thanks in advance!

Pooja

@Pooja P 

post button only available for journal type fields.

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