Show Field Message for Catalog variable is coming in same line

Sanjay34
Tera Contributor

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

7 REPLIES 7

Fabian Kunzke
Kilo Sage
Kilo Sage

Hello,

Could you add the code you are using to show the variable message as well, please?

Regards

Fabian

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);

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.

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