How do I change the "User name or password invalid" message?

Jonathan Monks
Tera Guru

How do I change this error message? I'm finding it difficult to find.

I have tried changing the "login_invalid" message in the sys messages table and also the login installation exit, but to no avail. I need to make a subtle tweak to the message.

find_real_file.png

Any help would be appreciated.

1 ACCEPTED SOLUTION

Hi there,

Did this solve your question? Or do we need to follow-up on this?

Please mark this answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

12 REPLIES 12

And the how:

find_real_file.png

So no editing of widgets or something needed. 

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thats exactly what I wanted, but its sadly not working for me!

In the Installation Exit it appears to call "login_invalid":

find_real_file.png

But if I change it over:

find_real_file.png

It still shows the message as it was. Any ideas?

Hmmm oke. The widget looks the "Login" widget to me. Can you check if you are using the out-of-the-box "widget-login" widget or maybe a customized one (which might not be set up to support ui messages).

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Ah - you might be onto something there! It is a customised widget. How would I enable it to allow UI messages?

Ah I suspected such. Because my out-of-the-box instance only mentions "User name or password invalid" and not also "reset password" which looks like a hyperlink.

Translation could be set up multiple ways, in the Body HTML Template, Server script, in the Client controller. Server script for example could use something like:
gs.getMessage("Your message");

Can you share your custom login widget?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn