Here is the custom calculation script I am using:
var requestDateString = this.getField("RequestDate").valueAsString;
if (requestDateString="") event.value = "";
else {
var d = util.scand("mm/dd/yyyy", requestDateString );
d.setMonth(d.getMonth()-6);
event.value = util.printd("mmm-yy", d);
}
I am unable to attach the document because I am on a federal laptop with so many restrictions. When I initially choose the request date the mmm-yy fills automatically as needed but when I change the request date the original mmm-yy box stays the same and does not update with the date change.
Sorry, my bad. There's a small error in the code I posted before.
Change this line:
if (requestDateString="") event.value = "";
To:
if (requestDateString=="") event.value = "";