- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-25-2023 02:51 PM
Hi
How can I auto populate the actual end date field on the change form upon selecting the cancel change button
In other words, I did like for that to auto populate with current date when I select cancel change to cancel the change request
And I want to make this button only visible in the implement state and only visible to change implementers
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-26-2023 07:43 PM
This worked for me
current.work_end = gs.nowDateTime();
current.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-26-2023 07:27 PM
Hi @Ponda
Try to put your line of code before "current.update()"
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-26-2023 07:32 PM
you need to put line no 14 and 15 before line no 11 i.e current.update(). // this line will update your current record
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-26-2023 07:43 PM
This worked for me
current.work_end = gs.nowDateTime();
current.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-25-2024 02:33 AM
I want to autopopulate start date in change form when the implement button is clicked, what can i do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-26-2023 07:46 PM
Most appreciated fellows! the below worked like a charm
current.work_end = gs.nowDateRime();
current.update();