Show only days in duration field.

kshitij patil
Mega Contributor

Hello All,

I want to make only days  from the duration field to be visible and hide the hours min and second.

 

As shown in below screenshot I want to hide highlighted field.

find_real_file.png

Can anybody help here.

Thanks in advance,

_kP

13 REPLIES 13

Tushar Sharma2
Kilo Guru

Hello KP,

You can achieve this by setting "max_unit" attribute in the dictionary of Remaining Effort field.


1.Right click on duration field.
2.Goto configure dictionary.
3.Click advance ui action under related links.
4.Add max_unit=days in the Attribute field.
5.save the record.

Let me know if you have any question.

Hit Helpful or Correct on the impact of response.
-Tushar

Hi Tushar,

 

Its not working for days, for minutes its working but not for days

To show only days, how its achievable , can you point out...

Attribute set for minutes

find_real_file.png

 

 

Duration field converted to Minutes

find_real_file.png

Attribute set for days

find_real_file.png

 

 

But its not showing only days:

find_real_file.png

 

 

 

 

Hello,

Try below code on On-load client Script for duration field to hide hours, min and sec:

function onLoad() 
{
 document.getElementsByClassName('col-xs-7 col-sm-12 col-md-12 col-lg-8 no-left-padding-lg')[0].style.display='none';
}

 

Let me know the result.

Hit Helpful or Correct on the impact of response.

Regards,
Tushar
www.DxSherpa.com

Did you get chance to look into this code?

Hit Helpful or Correct on the impact of response.

Regards,
Tushar
www.DxSherpa.com