g_form.showFiledMsg() - not working expected in Employee center portal

Gillerla Rajesh
Tera Contributor

Hi ,

This is the syntax i given.

 

 g_form.showFieldMsg('owners_of_the_shared_mailbox', 'please select Owners of the Shared Mailbox at leaset 2 user to submit', 'error', true); 
 
not working in ESC portal- (Color it should show in Read color right)
 
GillerlaRajesh_0-1752886915457.png

  but it's working in when click in Try it.

GillerlaRajesh_1-1752887010337.png

 

 

Any one help me on this please.

 

Regards,

Rajesh Gillerla.

9 REPLIES 9

@Gillerla Rajesh But there's one simple workaround.

Create one Rich text label variable and show it under the "Owners of the shared Mailbox" variable.

Sample:

Screenshot_20250719-073616.pngScreenshot_20250719-073749.png

GlideFather
Tera Patron

Hi @Gillerla Rajesh 

please review and eventually change the Type to "ALL" (usually it is Desktop) in your catalog client script. This is usually what happens when you test it with "Try it" it is very unreliable method... changing the Type to All usually helps. Please let me know!

Also, it must be catalog client script, if it is "only" client script it will not work.

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */



@Gillerla Rajesh this guy:

KamilT_0-1752920464597.png

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @Gillerla Rajesh,

 

I replicated the issue:

  • left side is RP > Try it,
  • right side a form in ESC.

KamilT_0-1752959646599.png


I also found this article from May: 

 

But for me, it doesn't display the RED background in ESC but neither in SP (!!!).

There are two workarounds:

  • use addInfoMessage()
  • or the warning
    • I create Catalog UI Policy with the following Action:

KamilT_1-1752960095407.png

 

 

My instance is:

Build name: Xanadu
Build date: 03-06-2025_0935
Build tag: glide-xanadu-07-02-2024__patch7-02-27-2025

 

I am going to upgrade it and re-test tomorrow (or once it's available)...
 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


@Gillerla Rajesh what's interesting that in Yokohama not even the Warning is displayed anymore 😄

 

Xanadu:

KamilT_0-1753003123217.png

 

Yokohama:

Build name: Yokohama
Build date: 06-25-2025_1836
Build tag: glide-yokohama-12-18-2024__patch5-06-11-2025

KamilT_1-1753003140679.png

 

 

I guess this oculd be raised at the HI Portal, I haven't found any known error article or existing problem. As PDI has not support, it shall be raised from a real project so in case this is impacting your client's environment, please raise the case for ServiceNow 

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */