Custom Calculation Script - Set deadline date at least 5 working days after date of submission
Hi all,
I have no basic knowledge of scripting and had only begun using Custom Calculation Script in Acrobat.
We have a Job Sheet that we have two Date fields on. One is the Date Submitted, and the other is Deadline. We need to have the Deadline date option to be at least 5 working/business days after the Date Submitted.
We currently have
var s1 = this.getField("DATESUBMITTED_af_date").valueAsString; if (s1=="") event.value = ""; else { var d1 = util.scand("dd/mmm/yyyy", s1); d1.setDate(d1.getDate()+5); event.value = util.printd("dd/mmm/yyyy", d1); }
But this only sets the Deadline date 5 days after and there's no option to select a later date.
Any help would be much much appreciated!
Thanks!
