Show only days in duration field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2018 04:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2022 07:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 04:14 AM
This logic is not working tushar any idea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 05:37 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 02:35 AM
I have submitted an idea for this feature, if you'd like to upvote: