Show Field Message for Catalog variable is coming in same line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 05:01 AM
I have written the code to show field message for catalog variable on load on portal. After the San Diego upgrade the message is coming in the same line as variable. Please find the screenshot for the same. Using below code :
var msg = "The message which need to be displayed";
g_form.showFieldMsg('variable_name', msg, "info");
g_form.showFieldMsg('variable_name', msg);
"Self-Serve Firewall Policy Management" The request for Firewall Policy Configuration is already in place and is scheduled for
Variable name : Self-Serve Firewall Policy Management
Field message : The request for Firewall Policy Configuration is already in place and is scheduled for
Ideally the field message should in the below line as below. Help me to fix this issue.
"Self-Serve Firewall Policy Management"
The request for Firewall Policy Configuration is already in place and is scheduled for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 05:30 AM
Hello,
Could you add the code you are using to show the variable message as well, please?
Regards
Fabian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 07:30 AM
I have tried both below code :
var msg = "The message which need to be displayed";
g_form.showFieldMsg('variable_name', msg, "info");
g_form.showFieldMsg('variable_name', msg);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2022 03:18 AM
Thats odd. Both should show the message right above the field instead of aside it. Seems to be a San Diego issue. Could you raise this problem towards the servicenow support, please?
Regards
Fabian
ps.: Sorry, but i don't think i can help out further with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2022 03:17 AM
Hi Fabian,
I have identified like we have used hidden Rich label text variable just above the variable for which we have to show this message. If I am making active false this Rich label variable then it is show field message is coming as expected and if it is true then it is coming in the same line. Any help please...
Rich label text variable : Order Value 62
Checkbox variable order : Order Value 64 : For this we need to show field message on load.
Thanks & Regards
Sanjay