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

This works.

But what about if there are multiple duration fields on form, how we can specifically do that.

If you noticed in below code there is an array index number which will specify the index of duration field. In case of multiple duration field you need to specify the index number.

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

Hit Helpful or Correct on the impact of response.

Regards,
Tushar
www.DxSherpa.com

Thanks

Could you please mark as a correct answer if it resolved your query for future reference.

Regards,
Tushar
www.DxSherpa.com

Correct can be marked by author only