Time Sheet Porta 'Add to Time Sheet'

akyadav
Tera Expert

Hi Team,

Is there a way to make 'Add to Time Sheet' only available for the current month not for any previous months.

akyadav_1-1707930543585.png

 

 

Users should not be able to add a time sheet for any previous months in Time Sheet Portal using 'Add to Time Sheet'.
Please help me to achieve this.

Regards,
Ajay

1 ACCEPTED SOLUTION

Please see the screenshots below

SaloniSuthar_0-1707936493429.png

 

SaloniSuthar_1-1707936513320.png
Please note my week starts on was set to Monday in the time sheet policy

 


If my response helped you, please click on "Accept as solution" and mark it as helpful.
- Saloni

View solution in original post

9 REPLIES 9

Community Alums
Not applicable

Hi @akyadav ,


Could you please elaborate your requirement? Do you want to display only current month dates once clicked on the UI action or the button should only be visible for the records which were created in this month?

Please help me understand the requirement clearly so that I can help you with this.

 

Thanks & Regards,
Madhan Somesh.

Hi Somesh,

Hope you are doing well !!

 

My requirement is 'Add to Time Sheet' button should only be available if you are trying to submit a time sheet for a current month. It should be disabled/grayed out if you are trying to add a time sheet for previous months using 'Add to Time Sheet' button.

 

Regards,
Ajay

Community Alums
Not applicable

Hi @akyadav ,

 

So if the user selects date/time from previous month in the date/time field the button should be disabled forcing him to select date from only this month. So the requirement is based on the date/time field he entered & we need to make sure the button only displays if the date/time field has a value from the current month.

 

Please confirm if I'm getting this correct? So that I can come up with a script to fulfill this.

yes Somesh that is my requirement.