How to display duration field only in Hours

Nakata1
Tera Contributor

Hi All

Is there any way to display the Duration field of "Hours" only as shown in the screenshot below?find_real_file.png

1 ACCEPTED SOLUTION

Sravan21
Kilo Expert

Go to Data Dictionary of that field, in the Advanced view of Dictionary entry, you will see Attributes field. Enter "max_unit=hours" without quotes in the Attributes field there and update it. This should work.

 

Mark Helpful if it works as expected.

 

View solution in original post

4 REPLIES 4

Kunal Varkhede
Tera Guru

Hi,

 

Have you check @Naveen comment on this it will help you check below community link

https://community.servicenow.com/community?id=community_question&sys_id=ae4cb2c1db2063001cd8a345ca96...

https://docs.servicenow.com/bundle/london-application-development/page/script/general-scripting/conc...

 

Please Mark correct/Helpful answer if it help you in any way.

Thanks,

Kunal.

 

Sravan21
Kilo Expert

Go to Data Dictionary of that field, in the Advanced view of Dictionary entry, you will see Attributes field. Enter "max_unit=hours" without quotes in the Attributes field there and update it. This should work.

 

Mark Helpful if it works as expected.

 

Is there a way not to show thhe zeros as well?

Thanks man!!