Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

onLoad Catalog Client Script is not worked in Service Portal

masateru_tomiok
Kilo Expert

I am using the latest version of Kingston in developer instance.
I created a catalog item and set a following onLoad catalog client script.

Name: onLoad
Type: onLoad
Applies to: A Catalog Item
Applies on a Catalog Item view: checked
UI Type: All
Script: 

function onLoad() {
	g_form.setValue('set_value', 'foo');
}

In Service Portal, onLoad script is not worked. However, it worked on Jakarta Patch 6a.

Is there anyone who encounters the same issue?

1 ACCEPTED SOLUTION

masateru_tomiok
Kilo Expert

I contacted support, This behavior was a known issue (PRB1248054). It is fixed in Kingston Patch3.

View solution in original post

8 REPLIES 8

Mandeep Karan
Giga Guru

Hi,

 

Is there any other script also working on this form/page? or you have only this onload script with single line?

 

Regards,

Mandeep

there is only onLoad script.

Rajashekhar M
Kilo Sage
Kilo Sage

Hey masateru.tomioka,

 

To make it work in serviceportal. You need to use call back function or script include,

 

check below thread might be help full to you:

Catalog Client Script on Service Portal is not working

 

Let me know if you need more help..!!

 

Thanks,

Rajashekhar Mushke

Community Leader-18

 

 



Thanks,
Rajashekhar Mushke
Rising star -2023 & 2022
Community Leader -2018

Rajashekhar M
Kilo Sage
Kilo Sage

you can also Refer:

Some Catalog Client Scripts do not work in Service Portal because using unsupported APIs

documentation/client_scripting.md at master · service-portal/documentation · GitHub

onLoad Client Script not working in Service Portal

 

Let me know if you need more help..!!

 

Thanks,

Rajashekhar Mushke

Community Leader-18



Thanks,
Rajashekhar Mushke
Rising star -2023 & 2022
Community Leader -2018