Field message disappears (without using hideMsg) when the value of the field changes. Is it a servicenow bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2022 07:53 AM
Hello,
I noticed a strange behavior on one of my catalog items.
I have a form, like this in my personal dev instance:
When the user changes the "Name for requestor" field, a msg is displayed unter my test field.
When the user inserts a value on the "test" field, the msg is hidden. I want this msg to be visible always.
And this is my catalog client script.
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2022 09:30 AM
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:
2nd client script you need to add:
Result - info message stays visible even if user changes second variable:
If this answer is helpful please mark correct and helpful!
Regards,
Christopher Perry
Regards,
Chris Perry