How to format field display message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2020 09:38 AM
I have 2 questions about the display field message.
1. Can you format the field message box? Make it smaller (thinner)? And/or make the text smaller?
2. How can you include an embedded hyperlink in the message?
I've seen examples of the field info message, and it includes a green check mark at the beginning of the message box. But, I'm not seeing this. Also, in the example message box, the message is starting at the beginning of the field name (Caller). Mine is not. It's starting at the beginning of the check mark box. Can this be changed?
Example:
Here's what I'm getting:
Also, I would like 'KBXXXXX' to be an embedded hyperlink. If the agent clicks on it, it will take them to a specific KB article.
UI Policy script I'm using:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2020 01:21 PM
You might be able to embed the link in your message, but you probably shouldn't update the styling for the info message. You could probably update it through DOM Manipulation in a client script but that's frowned upon by ServiceNow.
Try throwing an anchor tag in your field message like this:
"Info message... <a href=/page?id=" + g_form.getValue('kb_sys_id') + ">KB0000000</a>"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2020 07:47 AM