- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 04:40 AM
Hi,
I have a requirement in atf to set the date field to be always in future using server side script .
How can we achieve this ?
Thanks ,
Tiasha
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 12:45 AM
Hi @tiasha123
No Server side script is required.
Directly use the code like this.
Regards
Shaqeel
***********************************************************************************************************************
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
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 05:45 AM
Hi @tiasha123
Use javascript: gs.daysAgo(-1); Tomorrow
javascript: gs.daysAgo(1); Yesterday
javascript: gs.daysAgo(-31); 31 days in future
javascript: gs.daysAgo(31); 31 days in past
javascript: gs.nowDateTime(); today
You can use directly on field using set field value.
Regards
Shaqeel
***********************************************************************************************************************
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
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 05:53 AM
Hi @Shaqeel ,
Does this mean , first in the implementation date - I will manually add a date and then in the next step , will use a server side script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 12:45 AM
Hi @tiasha123
No Server side script is required.
Directly use the code like this.
Regards
Shaqeel
***********************************************************************************************************************
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
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 12:49 AM
Hi @Shaqeel ,
It worked . thank you.