Show message in the portal

JLeong
Mega Sage

Hi Guys,

I can't seem to show a message under a reference field in the portal. I have tried the following

  • g_form.showFieldMsg
  • g_form.showErrorbox
  • Macro

It works in the core UI :

find_real_file.png

but not in the portal:

find_real_file.png

 

Here is the code:

find_real_file.png

Thank you in advance.

 

Regards,

Jocelyn

 

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi,

Is the UI Type" set to "All" on the client script? If not, the script won't get executed on Service Portal.

find_real_file.png

View solution in original post

6 REPLIES 6

Hi Anil,

I found the issue, I needed to change  

- var rtype = g_form.getElement('req_type');

to  

- var rtype = g_form.getValue('req_type');

 

and it worked!

 

Thank you guys for your help.

yitest litest
Tera Contributor

hi, This question is solved? the same question happens now

in portal after g_form.setValue,  g_form.showErrorBox not work.