
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-03-2022 02:40 AM
Hello All
I have a date/time field which I would like to be set to three days from now as default when a ticket goes into Pending Customer.
How can I achieve this ? Can I put a default value in the dictionary field or should I use a client script ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-04-2022 02:04 AM
Hello @Jerome MAISETTI
You can use the below script in Before Update BR:
Condition: State is on Hold AND On hold reason changes to Pending Customer
Before update BR Script:
var nowGDT = new GlideDateTime();
nowGDT.addDays(3);
var nowDateNumericValue = nowGDT.getNumericValue();
current.<your_date_time_field_name>.setDateNumericValue(nowDateNumericValue);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-18-2025 05:41 AM
can you create a new question for this as this is an old thread and tag me there?
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-04-2022 05:40 AM
Thanks all! I managed to do it š