How to hide catalog item variables in order guide and RITM level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 10:00 AM
I have used below catalog client script on catalog item to hide variable on order guide level, it's working as expected but it doesn't hide the same variable on RITM level(see attached for reference)
However, once I submit order guide, RITM that got created still shows field in the variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 10:16 AM
Hi @Reddymahesh ,
Please check the below post, it might help
hiding variables on order guide
Please Mark My Response as Correct/Helpful based on Impact
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 10:23 AM
This only hides variables on order guide, which I was able to do already
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 01:24 PM
Hi @Reddymahesh,
g_service_catalog.isOrderGuide(); only works on the Service Portal and not on the RITM page.
Try the following line of code instead:
var isOrderGuide = g_form.getValue('order_guide') || g_service_catalog.isOrderGuide();
Note that g_service_catalog.isOrderGuide() doesn't work when ordering the item via the backend and I am unsure about its functionality in the Mobile App.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 02:29 PM
This works on RITM form as it has the order guide field , but doesn't work on catalog task form. Do we need to call script include and check the order guide sys id and then hide fields accordingly