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

Regards,
Tushar
www.DxSherpa.com

Not applicable

Correct can be marked by author only

Below code helped us:

function onload{

var a = document.getElementsByClassName('col-xs-7 col-sm-12 col-md-12 col-lg-8 no-left-padding-lg');

a[0].style.display='none';

a[1].style.display='none';

}

 

you can increment the value based on number of duration field on the form.

This logic is not working tushar any idea

Tushar Sharma2
Kilo Guru

Hello KP,

I have checked with max_unit=days and its seems that attribute will not work with Days. To achieve this you need to write below onload client script. You just need to Replace TABLE_NAME with your table name(for eg: 'u_test') and FEILD_NAME with your duration field name (for eg : 'u_duration_field').

function onLoad() {
 
g_form.getElement('ni.TABLE_NAME.FIELD_NAMEdur_hour').style.display='none';
g_form.getElement('ni.TABLE_NAME.FIELD_NAMEdur_sec').style.display='none';
g_form.getElement('ni.TABLE_NAME.FIELD_NAMEdur_min').style.display='none';


}

 

Hit Helpful or Correct on the impact of response.

Regards,
Tushar
www.DxSherpa.com