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?

                    • Related Articles

                    • Script to Disable Worklog Addition on Closed Request

                      Kindly use the below scripts under Admin -> Page Scripts to disable Worklog addition on Closed request. The below script hides the Save option while creating new worklog on closed request. Script: let params=new ...
                    • Hide Asset

                      Use case If Technicians want to hide Asset field during template loading, then the same can be achieved using Execute Script option in Field and Form Rules. Solution Edit the incident/service template from which the asset needs to be hidden, choose ...
                    • Query to retrieve worklog details

                      Tested in: 14610 (Postgres) Query: SELECT wo.WORKORDERID AS "Request ID", aau.FIRST_NAME AS "Requester", sdo.NAME AS "Site", ti.FIRST_NAME AS "Request Technician" ,au1.FIRST_NAME AS "Worklog Technician", TO_CHAR(((sum(ct.TIMESPENT))/1000 || ' ...
                    • Script to hide the "Cancel Request" option from the request actions menu for technicians

                      Script to hide the "Cancel Request" options from the request actions menu for technicians. 1. Goto-->Admin--->Page Scripts 2. Condition-->Roles is---->select all the roles associated with the technicians 3. Execute the script---> ...
                    • Option to cancel the pending tasks when Request is cancelled- when the worklog is mandatory

                      Requirement: Customer needs to close the tasks when the request is closed and the worklog is mandatory field in request closing rules. Download the attached scripts. Under Admin > Developer Space > Global Custom Function, create a new custom ...