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

Smith Johnson
Tera Guru

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.

10 REPLIES 10

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