Stop Duration type field from converting hours into days/hours

chrish5
Giga Guru

On the "Create New" demand form, I've added a new duration type field called "Estimated effort".  It displays like below and converts 24 or more hours into days based on a 24 hour day. 

 

What we have:  

chrish5_0-1674763925388.png

 

 

What we want: 

chrish5_1-1674763950336.png

 

 

Our IT development team works mainly on "hours" for work estimate.  So, if estimated effort on a demand is 40 hours, we enter it as such and would like it to stay that way rather than it being converted to 1 day and 16 hours when you save the demand.   Can a duration type field be modified to do this without impacting how it's possibly used in other areas of ServiceNow AND, can the "Days" part of the duration type field be hidden since it's of no use to us on the Demand form?

1 ACCEPTED SOLUTION

Claude DAmico
Kilo Sage

Add an attribute to the field.

 

max_unit=hours

 

This will change what is displayed so Days is no longer there and convert anything that has days back to hours.

Claude E. D'Amico, III - CSA

View solution in original post

3 REPLIES 3

Claude DAmico
Kilo Sage

Add an attribute to the field.

 

max_unit=hours

 

This will change what is displayed so Days is no longer there and convert anything that has days back to hours.

Claude E. D'Amico, III - CSA

That worked.   Thanks!

Basheer
Mega Sage

Hi @chrish5 

Below Kb Article has your answer

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0870475

 

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.