How to remove/hide 'seconds' box on type 'duration' field?

jas101
Tera Expert

Hi guys, we use a duration type field for 'Downtime' on our change form. Is it possible to hide or remove the box that represents seconds on this duration field?

Many thanks.

1 ACCEPTED SOLUTION

Bhawana Upreti
Tera Guru

Hi,

 

You can do this by two ways:

1. DOM manipulation

2. Changing the system property - Go to System Properties > System > Time Format and knocked off the :ss  (seconds) and it will remove the SS part from your field but it will affect all fields of Time format within the system as this is Global change.

 

Thank you!

 

 

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Dj,

I think you cannot do this unless using some dom manipulation.

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Bhawana Upreti
Tera Guru

Hi,

 

You can do this by two ways:

1. DOM manipulation

2. Changing the system property - Go to System Properties > System > Time Format and knocked off the :ss  (seconds) and it will remove the SS part from your field but it will affect all fields of Time format within the system as this is Global change.

 

Thank you!

 

 

Thanks Bhawana, I'll check out the link which I hadn't come across before when browsing for similar questions.

For info RE the sys property, when I change it to HH:mm from HH:mm:ss it seems to update date/time fields but not duration type fields. Do duration type fields also update in your SN instance?

I apologise for the same, It would be only for date/time field.