- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2016 01:19 PM
We are creating a custom application to keep track of security exceptions. We have a date field on the form for the Next Review Date. How do we set the default value for that field to be six months from the current date?
Solved! Go to Solution.
- Labels:
-
Scoped App Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2016 01:30 PM
Put this in the default value of the field dictionary
javascript: var gdt = new GlideDateTime();gdt.addMonthsLocalTime(6);gdt.getDate();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2016 01:23 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2016 01:26 PM
What is the field type? Date or Date/Time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2016 01:28 PM
It's just a date field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2016 01:30 PM
Put this in the default value of the field dictionary
javascript: var gdt = new GlideDateTime();gdt.addMonthsLocalTime(6);gdt.getDate();