Duration field how to hide days and seconds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 12:33 PM
Is there a way to use a duration field and hide both the days and the seconds in duration fields? I found that I can use a variable attribute of: "max_unit=hours" and that works for minutes if you don't want to show days or hours, or even seconds if that's all you want to see. But I don't see a way to set a minimum, or just hide seconds.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 01:20 PM
Hi Travis,
I don't think this is possible. There is no "min_unit=..." attribute.
But if you combine max_unit=hours and system property glide.ui.duration.seconds.enabled = false, it may do the trick.
The drawback is that this system property will apply to all duration fields in the instance, not only to the one you need this.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 01:27 PM
Thank you for the info. Sadly I cannot disable that property because it affects other duration fields and I need to change only this one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 10:21 PM
Hello Travis,
Could you tell me which attribute you selected to enable this?
Thanks