onChange Catalog client script - setDisplay() is not working in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 05:43 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 05:56 AM
Hi,
User run scripts in UI policy as per "True" or "false" condition.
Thanks,
Vinitha.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 11:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 11:33 AM
Can you share your code????