- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-25-2021 02:19 PM
I have a Onchange client script on a field which is running on ALL UI type ( working fine in native view) but displaying the info message only for 1 sec and disappearing. Is that not supported in Agent work space ?
I also unchecked the Global and specified the view still having the same issue.
I also tried g_form.showFieldMsg('<variable_name>', 'msg', 'info', false); but no luck
below is the client script
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-26-2021 11:32 AM
just give a try.
try to pass second parameter in setValue('field name',<group id>,<grp name>);
I would suggest use glide ajax to get the group id and group name to set it on client side and then add showFieldMsg() see if focus issue is solving or not.
Also if it's showing msg again and again, use condition something like below.
If(g_form.getValue('field_name') != <group id which you get from script include >){
// add show field msg here.
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-26-2021 08:58 AM
Hi,
Yeah, I'm not seeing in your script where it would cause that...so I think this is more so around the record you're working with and this client script. I'm still sticking with my point around that hideFieldMsg line just sitting out there and that it needs to be placed within perhaps an if statement/condition.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-26-2021 07:13 AM
g_form.showFieldMsg is definately supported by Agent Workspace. Can you try without hidefieldmsg?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-26-2021 08:03 AM
Thanks Pranesh
still having the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-26-2021 08:26 AM
Can you check if any other script in running on agent workspace and clearing out the messages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-26-2021 08:45 AM
if i select a specific CI ( service now incident management ) it is showing if not it is disappearing in 1-2 sec