g_form.getValue is not working in Service Portal

chadlockwood
Kilo Sage

I am trying to test the values of a number of true/false fields on a Service Catalog item. The pre-Helsinki Service Portal catalog client script included these lines:

var core = g_form.getValue('core');

This works outside of the Service Portal. However, when I add a line to alert the value of core it is blank, in the Service Portal.

From everything I have read so far, it would appear that g_form.getValue should work just fine in the Service Portal. Is there something that I'm missing?

We are on Helsinki Patch 3 and the catalog client script UI type is set to both.

4 REPLIES 4

Community Alums
Not applicable

Hi chadlockwood,



Did you find a way to tackle this situation ?


I have been trying to setVisible function on the client side in service portal for my sc_cat_item widget. It does not seems to work.



Thanks,
Ishan


Hi Ishan



Try upgrade to Patch 6 -> Helsinki Patch 6 (see PRB712487)



Regards


Marc


Community Alums
Not applicable

It seems to be specific for setValue function. Does service portal support setVisible function as well ?


As i want to hide catalog variables for service portal but they should be visible when it is from application view(more for itil users).


Did you find a solution for this? We are in the same boat