- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:10 AM
Hi Team,
Is there a way to make 'Add to Time Sheet' only available for the current month not for any previous months.
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 10:49 AM
Please see the screenshots below
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:41 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:47 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2024 09:49 AM
yes Somesh that is my requirement.