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 08:20 AM
Hi,
annotation type variable what do you mean??
I can't find a type of "annotation".
Could you please clarify it? 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 08:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 08:26 AM
Hi Christopher,
this does not serve my use case. I want the help text or the msg to be changed dynamically based on the user's input. If I use the help text, it will always be the same.
That's why I used the showFieldMsg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 08:40 AM
Sorry, I was thinking about Forms. For a Catalog Item or Record Producer add a Label type. Or, using the Annotation checkbox method on the field itself with Always Expanded checkbox checked if having the message above the field is okay.
I see that
Thanks,
Aoife
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2022 08:46 AM
Hi Aoife,
the issue with the Annotation and the Always expanded, is that I want to change the annotation text dynamically.
Also, the label variable does not serve me, because the only way to change the label is with DOM manipulation which is not recommended.
It seems that the bug blocks me from the logic that I want to put in the catalog item.
But thank you for your ideas 🙂