How to add days to a custom field based on the date of another custom field?

Celyn June 1, 2021

I have tried this but an getting an error while parsing additional fields not valid json

def EstimateDeliveryDateField = getFieldByName("Estimate Delivery Date") // Grab the Estimate Delivery Date

def ICAEndDate = getFieldByIName("ICA End Date") //Grab the ICA End Date

double dDays = 7 // Defined number of days

if (ICAEndDateField.value != null) {ICAEndDate.setFormValue(new ate().plus(dDays.toInteger()).format("dd/MMM/yy hh:mm a"))
}

 

1 answer

1 accepted

1 vote
Answer accepted
Celyn June 2, 2021

We have figured it out so now it works.  Here is what we did. We changed the brackets to quotations; {{"Estimate Delivery Date".plusbusinessdays(10)}} Once we did that, it worked like a charm!

image.png

Suggest an answer

Log in or Sign up to answer