04-09-2018 04:49 AM
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?
Solved! Go to Solution.
04-11-2018 07:04 PM
I contacted support, This behavior was a known issue (PRB1248054). It is fixed in Kingston Patch3.
04-09-2018 05:05 AM
Hi,
Is there any other script also working on this form/page? or you have only this onload script with single line?
Regards,
Mandeep
04-09-2018 05:20 AM
04-09-2018 05:21 AM
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
04-09-2018 05:24 AM
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
Let me know if you need more help..!!
Thanks,
Rajashekhar Mushke
Community Leader-18