Duration field how to hide days and seconds

Travis Michigan
Mega Sage

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.

 

3 REPLIES 3

JP - Kyndryl
Kilo Sage

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.

 

Regards,
JP

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.

Nithin_10
Tera Contributor

Hello Travis,

Could you tell me which attribute you selected to enable this?

Thanks