Hide days box in a duration field?

Jared Wason
Tera Guru

Hi,

Is there a way to hide the days box that shows up in the duration field? For my form users will only ever need hours or minutes, so the days box is unnecessary. 

 

find_real_file.png

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

Please see this post which should help you. I believe it's a field attribute for days that you can remove, etc. for it to not show: https://community.servicenow.com/community?id=community_question&sys_id=a92ee7eddb57abc02e8c2183ca96...

use max_unit=hours

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

Please see this post which should help you. I believe it's a field attribute for days that you can remove, etc. for it to not show: https://community.servicenow.com/community?id=community_question&sys_id=a92ee7eddb57abc02e8c2183ca96...

use max_unit=hours

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @Jared Wason ,

I'm glad you got the correct answer. I feel I stated this above...

Field attribute...bolded and all.

If my post did not help...my apologies.

Take care


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Kieran Anson
Kilo Patron

Hey Jared,

Add max_unit=hours to your attributes field of the dictionary entry.

Note: This can't be added to the related list, has to be added via the advanced view field.

find_real_file.png