Hide 'Delivery Time' on Self Service Portal when there is no value to display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2023 12:48 PM
On the request summary page, I would like to hide the estimated delivery and delivery date if there are no values to be displayed. If there are values to display, then show.
No Values:
Values:
It will be different for each catalog item we have depending on if we show a delivery date or not. I understand that the date is derived from the catalog item (Portal Settings -> Hide Delivery time -> false/true) and the flow stages duration.
Any advice on setting this up would be appreciated.
Thanks!
Dom

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2023 01:11 PM - edited ‎03-20-2023 01:12 PM
Hi @NFGDom
You need to Create a UI policy on this Catalog Item.
1. Open the Catalog Item record. Right click on the header Configure->UI policy.
2. Create e New UI Policy.
3. Add the following conditions.
4. Create the following UI action record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2023 01:16 PM
Hi @Ashir Waheed !
Thank you for the reply.
I think I'm a little confused on your solution.
Do I need to create a UI Policy for every catalog item in which I do not want the delivery date to not show? I thought UI Policy's on catalog items only let you manipulate variables and not table fields.
To reiterate, I'm looking to hide the delivery date field if there is no value on the request summary page on the Self - Service Portal.
Thanks,
Dom

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2023 01:28 PM - edited ‎03-20-2023 01:29 PM
Well you can simply create a UI Policy that will work on all catalog items by default but this solution doesn't seem to be feasible as what we are trying to Hide is NOT a "Delivery Time" but a Delivery Date.
This setting seems to be setup on Navigating to this record.
1. In the Application Navigator, Navigate to Service Catalog->Catalog Definition->Maintain Cart Layouts.
2. Search for Record with Target=Order Status Screen, on the columns tab we could see the field 'Delivery Time Column' which has a checkbox enabled. This checkbox for this field needs to be disabled.
Important Note: There is no configuration to HIDE 'Delivery date' and 'Estimated delivery' fields for only a specific catalog item. The Cart Layouts configuration is for across all Catalog Items.
You can refer here->KB0722511
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2023 05:18 AM - edited ‎03-22-2023 05:21 AM
Thank you for your reply and information!
I was not able to get the cart layout within order status screen to work on my developer instance.
However, I did some more digging into the SC Order Status widget which is displaying the delivery date information on the portal page.
After making a clone, I update the 'nf-if' on lines 36, 65, & 87 from "::options.display_delivery_date === 'true'" to "data.request.show_estimated_delivery". These changes were made on the Body HTML Template of the widget.
This allows us to display the delivery date per catalog item by looking at the value "Hide Delivery time" (portal settings tab) on the catalog item rather than pulling in the widget's instance options.
We understand that this is a custom enhancement specific for our needs & have made sure to document this change when making new catalog items in the future. Given the requirement we were asked to fulfill, I think this will work as a decent workaround.
Thank you again for your help Ashir!
Dom