The CreatorCon Call for Content is officially open! Get started here.

Restrict users to enter negative hours in time cards of time sheet portal

bhanu27
Tera Expert

Hi All,

 

I Want to restrict users or resources to enter negative hours in time cards from time sheet portal.

As we have time sheet policy to validate or restrict if we enter more than 24 hours per day, similarly i want users not to enter -2, -1 like Negative hours in time cards.

 

Please help me

5 REPLIES 5

Hi 

Thanks for the reply, i have tried with your answer, sorry it is not working, we can still able to enter negative hours it is not throwing any error message and not aborting action.

please help let me know if i can try any other way.

Thanks.

 

bhanu27_0-1705648998036.png

bhanu27_1-1705649024407.pngbhanu27_2-1705649043206.png

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @bhanu27 

 

Baselien:

https://www.servicenow.com/community/developer-forum/restricting-user-to-entering-negative-and-speci...

https://www.servicenow.com/community/csm-forum/restrict-user-to-enter-negative-values-and-special-ch...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks for the reply, if you find any answers please let me know thanks for your support.

Paul Curwen
Giga Sage

I would not recommend you do this, having the ability to enter negative hours is there for a very good reason - to correct any previous entry mistake.

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul