- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
Hi
I want to remove days and seconds in the catalog item as shown in the attachment.
I tried code from: https://www.servicenow.com/community/developer-forum/show-hours-only-in-duration/m-p/1598089
but I have an error :" ErrorThere is a JavaScript error in your browser console"
when I removed ownerDocument it disappeared but code is not working.
Is there any other possibility to remove this?
reagrds
Piotr
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago - last edited 8 hours ago
Hi @PiotrekL ,
OOB you can show the maximum unit you want users to enter. You can use max_unit=days in variable attribute to remove days.
Service Catalog variable attributes
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago - last edited 8 hours ago
Hi @PiotrekL ,
OOB you can show the maximum unit you want users to enter. You can use max_unit=days in variable attribute to remove days.
Service Catalog variable attributes
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
Hi
This one woks but without removing seconds. But I agreed that seconds might be there
Regards
Piotr