How to restrict user to submit or edit timesheet older than the Current year

AnupriyaC
Giga Guru

Hi Everyone,

Currently, all users are able to edit and submit timesheets belonging to previous calendar years

Required Expected Behavior:

  • Users must not be allowed to edit or submit timesheets whose start date falls before the current calendar year.
  • The restriction must be dynamic
  • I want to either define it as a policy or would prefer if I could disable the Submit button for the specific years dynamically like how we do with Client Script

I would really appreciate your help and guidance on this.  

Thanks 

 

 

 

 

1 ACCEPTED SOLUTION

AnupriyaC
Giga Guru

Hi Everyone,

For those facing a similar issue, a simple solution is to create a Business Rule on the Timesheet table that validates whether the end date falls within the current year.

You can configure the rule to display an error message when the condition is not met, informing the user that the selected date is invalid. This will ensure the basic requirement is enforced.

This approach works at the portal level as well I’ve tested it and confirmed there are no issues.

Thanks!

View solution in original post

1 REPLY 1

AnupriyaC
Giga Guru

Hi Everyone,

For those facing a similar issue, a simple solution is to create a Business Rule on the Timesheet table that validates whether the end date falls within the current year.

You can configure the rule to display an error message when the condition is not met, informing the user that the selected date is invalid. This will ensure the basic requirement is enforced.

This approach works at the portal level as well I’ve tested it and confirmed there are no issues.

Thanks!