Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Calculate end date based on the selection of other field

Not applicable

Hi All, 

 

Having a requirement that, 

On the catalog form we have three fields 

1- Multiple choice  - access required range - 1 day, 1 week, 1 month

2- start date 

3- end date 

 

On the form once the user selects the date range below start date user can select the date (future dates) then in the end date field we need to set the duration based on the access required range. 

 

Ex - if access required is 1 week then of the user select date 10th June then in the end date field we need to set the 1 week duration. 

 

 

Any suggestion to achieve this. 

 

1 REPLY 1

Not applicable

Hi @Community Alums ,

 

use addDaysLocalTime(1); using glideajax and onchange client script you can attain this...