Disable "Submit time sheet" button from Time sheet portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 09:53 AM
How can we disable the "submit time sheet" button from the timesheet portal? The client wants the users to enable only the "submit" button on the top.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 01:51 PM
Hey Varun,
I guess you may have already figured this one out. But here's the answer if you still need it...
The code is present in the widget called Time Card Grid.
This widget has a Angular ng-Template called tcMoreActions, which is where the 'Submit time card' option is listed.
Comment the code along with the <li> tag, and the option will disappear on portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 07:25 AM - edited 07-18-2024 07:28 AM
Hi Anirudh
I figured. And also your comment helped me! Thanks for that!
Just a brief:
Step 1: Go to the "time card grid" widget
Step 2: Check for "Angular ng-templates" related list
Step 3: Find this line of code -
<li class="item" ng-if="item.canSubmit" ng-click="updateRecordState($event, 'Submitted')">
<a href="javascript:void(0);">${Submit Time Card}</a>
</li>
Step 4: Comment the following line like this:
<!--
<li class="item" ng-if="item.canSubmit" ng-click="updateRecordState($event, 'Submitted')">
<a href="javascript:void(0);">${Submit Time Card}</a>
</li>
-->
That worked for me

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 07:51 AM
Well then, would you mark my answer correct please 🤑