Option to hide "Worklog Timer" buttom from the request details page

Option to hide "Worklog Timer" buttom from the request details page

Use Case: 

In certain cases, it is mandatory for the technicians to add worklog with all the necessary details filled.  But "Worklog Timer" option logs only the time duration, other details have to be filled again when adding the worklog.  This option can be removed from the request details page.

Execution Steps:
  1. Go to the folder [SDP-Home] > custom > scripts >  and edit the file CustomScripts.js
  2. Add the below code in CustomScripts.js and save.
//This will hide the "WorkLog Timer" from the request details page
jQuery(document).ready(function () {
    if (location.href.indexOf("WorkOrder.do") > 0) {
        jQuery('# wlt-item').hide();  // For below 10.0 versions
        jQuery('#worklog-timer').parent().hide(); // For above 10.0
    }
});



Note:  This will hide the "Worklog Timer" options from the request details page.

                  New to ADSelfService Plus?