Future Date Scripting Help Needed

Hola Ola
Giga Guru

Hello All,

Can someone please help or point me to where to look?

 

I have a form that has the following fields:

  1. Plan Period (Select Box)
    a. Thirty (30) Days
    b. Sixty (60) Days
    c. Ninety (90) Days
  2. Plan Start Date (Date Field)
  3. Plan End Date (Date Field)

What I am hoping to achieve is, IF any one of the 3 selections 30, 60, or 90 days is selected, the Case Agent will manually select the Plan Start Date, then I would line for the Plan End Date to auto-populate, based on the number of Days selected (to exclude weekends and holidays). 

 

HolaOla_0-1719403501215.png

 

Thank you all for the anticipated help/suggestions.

1 REPLY 1

Kieran Anson
Kilo Patron

Hey,

This will likely be achieved via the following:

  1. A client script that triggers onChange of the planned start date
  2. A client-callable script include which uses the GlideSchedule API to add number of days based off of a business schedule. 

https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server/no-namespace/c_GlideSche...