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:
- Go to the folder [SDP-Home] > custom > scripts > and edit the file CustomScripts.js
- 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
How to auto-create worklog based on values specified in the request
This post will to help you create a worklog automatically when a request is created. This script can be configured under Request custom triggers and you will find more information about this here. This is achieved using an API call to create a ...
Purchase Request details
Select pr.REQUESTID AS "Request Id", pr.SUBJECT AS "PR Subject", pr.DESCRIPTION AS "Description", LONGTODATE(pr.REQUESTEDDATE) AS "Requested Date", LONGTODATE(pr.DATEREQUIRED) AS "Date Required", LONGTODATE(pr.CREATEDDATE) AS "Created Date", ...
How to populate request details on associated tasks.
This sample script is used to update request field values into tasks associated with request templates The Request details are stored as a JSON Object in a file and its path is provided as input to the Script. This can be used in the application ...
How to customize requester home page
Use case In the requester home page, each box should be a button and when clicked anywhere on the box they should be redirected to the respective Subcategories to select the Incident or Service Template or the Solutions. The first box should be with ...
How to populate requester details in request additional field
Requirement: Populate requester additional field information into request additional field. Usecase: Let us consider a scenario where certain employee details are imported from the Active Directory into User - Additional Fields. The business ...