Catalog item not working in portal

Tim Saunders
Tera Guru

I created a catalog item that works fine in the standard GUI but fails in the portal. The fields, UI actions, and clients scripts all behave as expected but the screen freezes when I select Order Now or Add to Cart. I did manage to find an error: "could not find script to run for this action" but I don't know what specific script/action it's referring to. I haven't made any changes to any core items (scripts, forms, etc.) so I'm not sure what the problem is. Any advice/direction would be appreciated.

1 ACCEPTED SOLUTION

Tim Saunders
Tera Guru

Rookie javascript mistake. Although I use getIntValue for each box and then add the numbers I was writing a number into the 'total' field when setValue clearly calls for a String... Once I added a step to convert the value into a string the item works properly.

View solution in original post

11 REPLIES 11

SatheeshKumar
Kilo Sage

First check the console for for errors..if you find any then post that below..we can check that further.(F12 in chrome)

In service portal some form functions are not supported so you need to add some modifications tto make taht working.

 

Thanks,

Satheesh

Tim Saunders
Tera Guru

I see an error:

 

Failed to load resource: the server responded with a status of 404 (Not Found)

https://devxxxxx.service-now.com/api/sn_sc/v1/servicecatalog/items/2cf38019dbf92300a3d97fcfbf9619ee/order_now

 

 

The sysid in that URL belongs to the catalog item being ordered

booher04
Tera Guru

Can you go into just the cart itself from the portal without it freezing?

Tim Saunders
Tera Guru

No. Adding to the cart causes the same problem