- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 12:52 AM
Dear all,
I have a question is it possible for us to insert the link for the message(sys_ui_message.list)? How to do that?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 01:20 AM
Hi @Junyu,
Here's is an example:
function onSubmit() {
var shortDescrp = g_form.getValue("short_description");
var descrp = g_form.getValue("description");
var uri = '<a href="./esc?id=sc_cat_item&sys_id=---sys_idhere---">Catalog item name</a>';
if(shortDescrp == "" || descrp == "")
{
g_form.addErrorMessage(getMessage('Error Message iSource Support',uri));
return false;
}
}
Your message record would then look like:
You can create a ticket by going to {0}
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 01:02 AM
Hi @Junyu,
Take a look at GlideSystem | ServiceNow Developers.
You can use parematers in the message which are set in the text as {0], {1}, etc.
This means that you can parse a url or name as parameter to show this dynamically.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 01:10 AM
Hi @Peter Bodelier ,
Thanks for your answer, but can you show me a case of how to let the catalog link as a link in this client script?
function onSubmit() {
var shortDescrp = g_form.getValue("short_description");
var descrp = g_form.getValue("description");
if(shortDescrp == "" || descrp == "")
{
g_form.addErrorMessage(getMessage('Error Message iSource Support'));
return false;
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 01:20 AM
Hi @Junyu,
Here's is an example:
function onSubmit() {
var shortDescrp = g_form.getValue("short_description");
var descrp = g_form.getValue("description");
var uri = '<a href="./esc?id=sc_cat_item&sys_id=---sys_idhere---">Catalog item name</a>';
if(shortDescrp == "" || descrp == "")
{
g_form.addErrorMessage(getMessage('Error Message iSource Support',uri));
return false;
}
}
Your message record would then look like:
You can create a ticket by going to {0}
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 07:19 PM
thank you for your sample code.
Just for one point , below code didn't work in my environment,
g_form.addErrorMessage(getMessage('Error Message iSource Support',uri));
after changing ',' to '+', it works!