- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 02:00 AM
How can I hide the Estimated Delivery and Delivery Date fields if there are no value. The delivery time in catalog item is 0 days. I am looking at the widget SC_Order_Status but not sure where to edit here. I know there is a check box in the catalog item to hide the delivery date, but would it be possible to configure it the widget level?
Anyone who implemented same before? Please help. Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 04:16 AM
after cloning you can update this line to hide it if empty
line number 36
<div class="text-muted" ng-if="::options.display_delivery_date == 'true' && data.request.show_estimated_delivery!='' ">
${Estimated Delivery} : {{::data.request.show_estimated_delivery ? data.request.esimated_delivery : '--'}}
</div>
Similarly do in the next few lines where they are rendering it as table
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 04:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 04:12 AM
then you need to clone the OOB widget; update the script to hide it and then add that new widget on that page
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 04:16 AM
after cloning you can update this line to hide it if empty
line number 36
<div class="text-muted" ng-if="::options.display_delivery_date == 'true' && data.request.show_estimated_delivery!='' ">
${Estimated Delivery} : {{::data.request.show_estimated_delivery ? data.request.esimated_delivery : '--'}}
</div>
Similarly do in the next few lines where they are rendering it as table
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 07:41 AM
It's working! Thank youn @Ankur Bawiskar !!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 07:53 AM
Glad to help.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader