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:46 AM
HI Alekhya,
For catalog client scripts to work in Service Portal, you have to change the UI Type to Both.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 05:51 AM
Hi Sneha,
Thanks for your reply..!
Yes, I have given UI type BOTH.
Thanks,
Alekhya N
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 05:50 AM
Hi,
Big Big problem!!!---service portal
Check these two articles.
Try to use setvisible or change it into catalog UI policy.
Thanks,
Vinitha.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2017 05:54 AM
Hi Vinitha,
Thank you..!
I have used setVisible() and No luck .
I cannot use Catalog UI policy because I have another conflicts there many conditions to be followed so I should use script.
Thanks,
Alekhya N