Help required - HTML field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2022 06:06 AM
Hi,
I have seen many related posts but I couldn't get it right.
How do I make my Journal input field (Additional comments) to HTML field so that I can make use of all the styles like Bold, underlined etc and insert pictures and all which is currently not possible with the Journal input field. Besides this, I need this HTML field to populate "Activities" just like Journal input field does. Also, the Html field should get clear out after saving the form and activities get filled .
Goal is that our customers can see styled text , URLs that can be clickable and all this will be captured in "Activities" section. some posts said to use html tags for bold, links etc but we want this to be automated instead of manually using <bold>.. etc. some posts said that a BR is required, but I am not sure how to do this. Also few other posts said that changing journal input field to HTML may hinder notifications and we have a lot of notifications that get triggered when comments change.
Please help me achieve this!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2022 06:33 AM
Hi
You need to use [code] [/code] around your text to be entered in your journal input field along with the HTML you want to use.
For example -
[code]<blockquote>This is a quote</blockquote>[/code]
[code]<a href="https://www.servicenow.com">ServiceNow.com</a>[/code]
Please mark my answer as correct or helpful, if applicable.
Thanks,
Aishwarya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2022 07:01 AM
Hi Aishwarya,
Thanks for the reply!
but, Is there any way this can be automated, because every time our team would want to send styled text, we need to type [code].....
Instead, we want something already available like HTML field instead of manually adding tags.
I can go ahead and change type from journal input to HTML but above mentioned are the challenges I faced.
like, HTML field doesn't clear out after saving like journal field does. It doesn't get added to activities section. some posts mentioned that notifications will not be proper with HTML field. How do I overcome these challenges of using HTML field?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2022 08:02 AM
Hi
You can try adding a before update business rule when the work note changes. Then try adding:
current.work_notes = '[code]' + current.work_notes + '[/code]';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2022 04:19 AM
A journal field is a type of field, just like an HTML field. You can't have an HTML field populating the journal activities. Unfortunately at this moment the answer to your question is that you just can't.
You could customize a script moving the nes HTML field content to a journal field and empty it afterwards, but I never tested this. I'm not sure what will happen with all the tags.
For now you need to manually add the tags in the journal field, if you want to achieve this. You can't get around this and not sure if that will be the case in the (near) future.
If my answer helped you in any way, please then mark it as helpful.
Mark
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark