Add 90 days to the date field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2022 11:42 AM
Hi,
I need to have an on load client script that will default the value 90 days from today.
This is a UI Page and I need to auto populate the Until Field. Please help.Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2022 01:36 PM
Hi Jet,
Please check this article it has what you require also addition data time scripts.
Auto-populating and validating date fields
Mark Correct and Helpful if it helps.
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 04:14 AM
Hi @Ankur Bawiskar ,
Can you help me here? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 05:21 AM
Hi,
Try Business rule with GlideDateTime.
var gdt = new GlideDateTime(current.untill);
gdt.addYearsLocalTime(1);
var a = gdt.getDate();
current.untill= a;
Mark as correct if it helps
Regards Mythily
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 11:10 AM
I cannot use a BR since this is in UI page.