How to format field display message

MStritt
Tera Guru

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:

find_real_file.png

Here's what I'm getting:

find_real_file.png

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:

find_real_file.png

2 REPLIES 2

Dylan Mann1
Giga Guru

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>" 

Hi Dylan, Thanks for the response. I ended up configuring the field label for the URL. So, when they click on the field label it will take them to the KB.