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

Not applicable

Thanks