Field message disappears (without using hideMsg) when the value of the field changes. Is it a servicenow bug?

Smith Johnson
Kilo Sage

Hello,

I noticed a strange behavior on one of my catalog items.

I have a form, like this in my personal dev instance:

find_real_file.png
When the user changes the "Name for requestor" field, a msg is displayed unter my test field.

find_real_file.png
When the user inserts a value on the "test" field, the msg is hidden. I want this msg to be visible always.
find_real_file.png
And this is my catalog client script.
find_real_file.png

Super strange, any ideas why this is happening?
Is this a bug?
Is there any way to show the msg always to the user????

Thank you,
Smith.

11 REPLIES 11

You can accomplish your desired logic by adding a second onChange client script where Variable name = test as below.

1st client script you already have:

find_real_file.png

2nd client script you need to add:

find_real_file.png

Result - info message stays visible even if user changes second variable:

find_real_file.png

If this answer is helpful please mark correct and helpful!

Regards,

Christopher Perry

If this answer is helpful please mark correct and helpful!

Regards,
Chris Perry

MichaelM0223641
Giga Contributor

HI,

I have a solution.

I Was troubled by the same issue and I see that there is no ootb solution so what I did is run an on change client script on that same field that displays the message that displays the message again so in practice the message just doesn't dissapear.

Please mark if worked)

Kind Regards