Comments field should be able to send text in bold/underlined etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 06:14 AM
Hi all,
How can I use "Comments" field (type: journal input, table : case) to send comments to end user in Bold/Italics/underlined or how can I use it to send links.
End users use a record producer (target is case table) and the comments field multi line text is mapped to OOB journal input comments field on case form
I am not allowed to change the type of it to HTML , also not allowed to create new HTML field due to license issues.
How can I achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 06:51 AM
Hi
the approach is described in the following article: https://community.servicenow.com/community?id=community_article&sys_id=a0c863dfdba83cd092bb0b55ca961...
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 06:32 AM
Hi Maik,
Thanks for the reply!
I haven't clearly understood the post as I am new to this but I can see that this has been done using a new field. Is there anyway we can do this without a new field creation.
For example: for the links/urls I will make use of another string field (existing) and for all the text added in this field, it adds https:// tags and adds it to the comments. Is there any way I can do the same for Bold/Italics etc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 06:40 AM
Hello
Yes you can do this using [code] tags
for example::
current.comments=[code]<b>My Bold Text</b>[/code];
If its a record producer you can try this
var mlt = producer.your_multi_line_variable_name
current.comments = [code]<b>mlt</b>[/code];
Try this and see the result
please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 11:35 PM