Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Disable "Copy from previous Time Sheet"

YummyAmericano
Tera Expert

Hi Community! 

Does anyone knows where and how I can disabled the button on the Time Sheet Portal?
In a long run, I would like to create a query to only allow to copy active tasks but for a short term, I would like to disable it and I cannot find it. Please advise, thanks.

3 REPLIES 3

AshishKM
Kilo Patron
Kilo Patron

Hi @YummyAmericano , 

Please check the UI Action with same name on table [ time_sheet ] 

 

AshishKM_0-1736785069834.png

 

By disabling or removing the UI Action, users will no longer have the option to copy from a previous time sheet, effectively turning off this functionality in the Time Sheet Portal

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

That is the first thing I tried. It only removed it at the form level not the Time Sheet Portal. It looks like that came from the Widget. 

PaulaaO
Mega Sage

Check this widget (sp_widget.list): Time Card Grid; there is a reference in the Client Controller re copy from previous time sheet. Perhaps if you comment that out it won't appear in the portal.

 

Also there is a Script Include: TimeCardPortalService which also references this action so you might need to comment that part out too.