Client Script to set form due_date based on "start_date" variable

Bcrant
Tera Contributor

Afternoon.

 

Hoping to get some guidance on a client script to set due_date on a task from to 3 days prior to a variable date input on employee start date. Any assistance is appreciated as my initial attempts with onLoad client script haven't produced desired result.

 

Thanks!

Bcrant_0-1675379334543.png

 

1 ACCEPTED SOLUTION

Yes before will be good one.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

View solution in original post

6 REPLIES 6

current.update() is always avoidable, in this case the BR just needs to be a before BR.

Yes before will be good one.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar