- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2018 08:44 PM
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
Duration field converted to Minutes
Attribute set for days
But its not showing only days:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2018 11:07 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2018 06:59 AM
Did you get chance to look into this code?
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
06-03-2018 08:25 PM
This works.
But what about if there are multiple duration fields on form, how we can specifically do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2018 11:03 PM
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