Change or Edit the Error Message shown on the My Requests page in the ESC portal

Imran J3
Tera Contributor

Hi all,

 

In the ESC portal, the error message "Sorry, either the data doesn't exist or you don't have access" shows up in the My Requests page. Is it possible to change or edit that error message on any module or records in any table in backend? If there is a way for this to do it, can someone please guide or help me on this issue? You can refer the image attached with this question below for this issue.

 

Thanks & Regards,

Imran J

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hello @Imran J3 ,

 

It is not possible to change the OOTB widget as it is read-only. If you want to change this text: "Sorry, either the data doesn't exist or you don't have access". You need to clone the "Standard Ticket Header" widget, make a change in line number 117, save, and attach it to the portal page. SS:

 

Khushbookabra_0-1690624259614.png

 

@Imran J3 , Please mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.

 

Thank You!

View solution in original post

4 REPLIES 4

Community Alums
Not applicable

Hi @Imran J3 ,

You can do that on the page level by overriding the alert class.

Add the below CSS in your page specific CSS in your page:

.alert-danger {
    color: orange;
    background-color: rgb(253, 247, 247);
    border-color: rgb(217, 83, 79);
}

SandeepDutta_0-1690554473136.png

 

The alert message is now changed ti orange color.

SandeepDutta_1-1690554473480.png

 

Taken from :https://www.servicenow.com/community/developer-forum/how-can-i-change-the-alert-message-styles-on-th...

 

Hi Sandeep,

I need to change this entire error message "Sorry, either the data doesn't exist or you don't have access" and replace it with a new message instead of the OOTB text that is shown in the portal page. Is it possible to change the OOTB error message here?

Thanks

Community Alums
Not applicable

Hello @Imran J3 ,

 

It is not possible to change the OOTB widget as it is read-only. If you want to change this text: "Sorry, either the data doesn't exist or you don't have access". You need to clone the "Standard Ticket Header" widget, make a change in line number 117, save, and attach it to the portal page. SS:

 

Khushbookabra_0-1690624259614.png

 

@Imran J3 , Please mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.

 

Thank You!

Hi Khushboo,

 

Thanks for your help and this is really useful for me.

 

Regards,

Imran J