Code-Snippets Client Script New Folder 'Time Worked Hide Start'#1928
Code-Snippets Client Script New Folder 'Time Worked Hide Start'#1928zstromsodt wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Conversation
| ## How to Use | ||
| 1. Create OnLoad client script (timeworkedhidetimer.js) | ||
| 2. Adjust which table you want it on. In this case, it will be Incident table. | ||
|
|
There was a problem hiding this comment.
Can you please add a sentence or two about why this needs to be done with DOM manipulation instead of g_form or other oob methods? Otherwise looks good.
There was a problem hiding this comment.
From my understanding, this isn't possible using oob methods or g_form according to documentation I found. Happy to use those if there is a solution for it.
https://www.servicenow.com/community/developer-forum/automaticly-stop-time-worked-timer/m-p/1603232
https://servicenowguru.com/system-ui/pausetoggle-time-worked-field/
If DOM manipulation is illegal in the code snippets, I can close the pull request. I misunderstood the purpose of this project if that's the case.
There was a problem hiding this comment.
No, I think you're right that there's not a native method for this. I meant can you add some information in the readme and/or code comments stating that DOM Manipulation must be used for this. Just want to include extra context since DOM manipulation is usually not aligned with best practices.
|
Please reopen once you add a note about DOM Manipulation being necessary for this specific use case :) |
PR Description: A Client Script that hides the Start/Stop button on a table.
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions