onChange Catalog client script - setDisplay() is not working in service portal

alekhyan
Kilo Contributor

Hi Everyone,

I have a onChange client script which contains setDisplay() to display "XXX" of type "Select Box" field. This is working in normal view but it is not working in Service portal.

I have used setVisible() method instead, then it is partially working in service portal. But issue is, I am unable to add options to that "XXX" through this onChange Client script when I use setVisible().

Now, please let me know that setDisplay() will work service portal(AM NOT USING VARIABLESET). If no, Please let me know if there is any workaround.

Thanks,

Alekhya N

7 REPLIES 7

Hi,


User run scripts in UI policy as per "True" or "false" condition.



Thanks,


Vinitha.K


Hi Alekhya,



How do you have the field name typed out inside setVisible()? I remember when we first started using the portal, I had to go into all of out client scripts and remove the 'variables.' from all of the setVisible() because the portal was not recognizing. Once I did that, my issue was resolved.



Service Portal is not recognizing setVisible()



- Mel


Can you share your code????