Java Scrip code to refresh the existing codes
I have several pdf fillable forms, and they contain javascript code.
When sent it to users using Adobe Acrobat on (Mac), these codes don't work!;
When sent it to users using Adobe Acrobat on (Windows), these codes work.
If there is a solution to make the code work perfectly in a Mac environment, that would be great.
But I think this is difficult, and because these forms, in the end, will be filled in, and then returned to the sender, who has a Windows system is there a (document-level-code) or a button code, to make the form (that the Mac users send) to refrest its code as soon as it is received?
Because when I receive the file some fields are empty, so I have to press again on check boxes, or re-enter the data again to make the code works.
I tried this code in the document level, but it did not work:
calculateNow()
In my form I have some calculations and this code:
this.getField("a_1").checkThisBox(0, (event.value == 3));
this.getField("a_2").checkThisBox(0, (3 < event.value) && (event.value < 6 ));
this.getField("a_3").checkThisBox(0, (event.value == 6));
this.getField("a_4").checkThisBox(0, (6 < event.value) && (event.value < 9 ));
this.getField("a_5").checkThisBox(0, (event.value == 9));
this.getField("a_6").checkThisBox(0, (9 < event.value) && (event.value < 11 ));
this.getField("a_7").checkThisBox(0, (event.value == 11));
this.getField("a_8").checkThisBox(0, (11 < event.value) && (event.value < 14 ));
this.getField("a_9").checkThisBox(0, (event.value == 14));
this.getField("a_10").checkThisBox(0, (14 < event.value) && (event.value < 17 ));
this.getField("a_11").checkThisBox(0, (event.value == 17));
this.getField("a_12").checkThisBox(0, (17 < event.value) && (event.value < 19 ));
this.getField("a_13").checkThisBox(0, (event.value >= 19));
Note: Some text-fields contain both codes and calculations (equations) at the same time
THANK YOU♥
Cheers,
Saher
