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

chrisperry
Giga Sage

Are there any other catalog client scripts or UI policies defined for this catalog item?

If this answer is helpful please mark correct and helpful!

Regards,
Chris Perry

Not at all 🙂 There are no UI policies or other scripts. Seems like a bug

Got it - yes, you are correct it is a known error: PRB1195721

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

Aoife
Tera Guru

If you want a message to always be there, simply add an Annotation type variable after the test variable and put your text in there.  That is what it is for.

Yes, it is working correctly, at least that is how it works in my instance as well.  Upon changing the value in the text box field any messages tied to it will be removed.

Aoife