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

catalog client script on Service Portal don't working

gabriel_terra
Kilo Expert

Hi all,

I think the new Service Portal has a bug. Or the bus is with my instance.

See.

I create a simple onChange catalog client script to show a alert.

screen_script.png

When I try from service catalog, its ok.

screen_item.png

But, when I try from Service Portal, don't 😕

screen_portal.png

Anybody can help me? This is happens with someone?

Tks,

Gabriel

1 ACCEPTED SOLUTION

gabriel_terra
Kilo Expert

Hi all,



I solved this issue.


For catalog client scripts work in Service Portal, you have change the UI Type to Mobile or Both.



screen_catalog_script.png



Also, if you use GlideRecord in script field, you should use a script include/ajax.


View solution in original post

13 REPLIES 13

Abdul Khan4
Kilo Guru

Can you please share Userid, password and url of your dev instance.


Hi Abdul,



Sure.


This instance is new, I requested it on this week, and I receive with Helsinki release.



Instance:


ServiceNow



Login with:


user: abel.tuter


pwd: abel.tuter



To check the catalog client script working:


ServiceNow - catalog



For Service Portal, were the catalog client script don't working:


https://dev10963.service-now.com/sp?id=sc_cat_item&sys_id=774906834fbb4200086eeed18110c737


srinivasthelu
Tera Guru

Hi Gabriel,



Look for console errors, that might will give you a clue?



Thanks


Srinivas


Abdul Khan4
Kilo Guru

I don't have enough permissions on both the links.


Please make me admin if possible.