Updated Acrobat and now Javascript calculations not working in new forms.
i had created forms work allowed me calculate dates given date instruct form users when components of project due. below script used- not programmer , taken forum. has worked 2 years in both acrobat 9 & 10 , in various forms have made.
var strstart = this.getfield("0vendorartapproved-2wk").value;
if(strstart.length)
{
var datestart = util.scand("mmm d, yyyy",strstart);
var oneday = 24 * 60 * 60 * 1000;
var duemillis = datestart.gettime() - 21 * oneday;
var duedate = new date(duemillis);
event.value = util.printd("mmm d, yyyy",duedate);
}
else
event.value = "na";
"0vendorartapproved-2wk" field previous date taken from- , amount of days "- 21" changes field field. form has 3 levels calulates dates from- starts single initial date entered text box user. allowed user see when different elements of project due. sorry if seems basic javascript masters clueless on prgramming speak , know have read forums.
the last version of form worked in oct 13', went create new form , copied these formula boxes new form , half of them no work.
i have rechecked formulas , formatting , cannot find , issue. same. 1 works , 1 not. thing can see different 2 forms there 1 or 2 updates acrobat software possibly have caused issue.
so have 2 documents- 1 created in october 13' works , 1 created today jan 14' not work. have same formulas.
anyone aware of changes acrobat or errors in formula have caused this? in version 10.1.9
did check see if preferences acrobat/reader reset upgrade?
specifically check "javascript" , "documents" categories. may need enable javascript , disable auto opening of pdfs in pdf/a mode.
More discussions in PDF Forms
adobe
Comments
Post a Comment