Restrict users from booking time to a date which is more than 30 days ago on time sheet portal.

Chandler2
Tera Guru

Users should be able to book time in past but not more than 30 days/1 month in past. I have to configure this on time sheet portal as well as on platform side. For example if Today is Feb 1, I should be able to book time till 1Jan but not to Dec of previous year.

 

Please suggest.

5 REPLIES 5

suvro
Mega Sage
Mega Sage

On platform side you can easily achieve this using a UI policy where you configure the condition

date/time is relative 30 days ago from now 

in the script part display error msg and clear the field

In the timesheet portal it depends whether it is a widget or page. 

Yeah I would need some help on the portal area.

Aarav1
Kilo Contributor

Hey @suvro i have a similar kind of requirement like to lock the time period so resources cannot enter time prior to that.For ex:-previous week timesheet should be locked and not able to fill  after tues 10am can u help me how to achieve this?? Whether to do with schedule job or br if any can u demo one and give me

Qusai1
Tera Contributor

@suvro can u help please