Not applicable

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

Not applicable

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