Change an error message

LM6
Tera Contributor

If a user clicks on a link to a catalogue item and they are not logged in they get the following error 

 

You are either not authorized or record is not valid.

 

Is there a way we can change this to something more useful - such as "Please can you login ...."  ?? 

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

Two options:

1. Either clone and modify SC Catalog Item widget.  instanceName.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=3c29786e87133200e0ef0cf888cb0bdf

line 140 of server script

Mike_R_0-1667223215842.png

 

OR

2. Create a new system UI message and type in your custom message

Mike_R_1-1667223261245.png

 

View solution in original post

3 REPLIES 3

Mike_R
Kilo Patron
Kilo Patron

Two options:

1. Either clone and modify SC Catalog Item widget.  instanceName.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=3c29786e87133200e0ef0cf888cb0bdf

line 140 of server script

Mike_R_0-1667223215842.png

 

OR

2. Create a new system UI message and type in your custom message

Mike_R_1-1667223261245.png

 

@Mike_R is there a way if user is not already logged in, we need to redirect user to login page and upon login they need to be redirected to catalog item link which they clicked in first place. Thanks in advance. 

LM6
Tera Contributor

Thanks for the reply - looks good.