4 Replies Latest reply on Aug 7, 2008 7:43 AM by (Jared_Price)

    Calculation Script (Custom) - Won't Run After Save/Restart of Acrobat

    Level 1
      Greetings,

      I see that a similar post was made with this issue, but the solution suggested did not solve my problem. I have some simple calculations being performed utilizing data from a few user inputted form fields. When I launch the document after having coded the scripts, tested them and seen them to work, saved and restarted Acrobat, they no longer seem to be active on the form fields. I input data as I did when creating the document and the fields that are to calculate do not. I have checked the Field Calculation Order and all seems to be correct there.

      The scripts that are in use are as follows:

      Form 1 Script
      var x = this.getField("X").value;
      var y = this.getField ("Y").value;
      event.value = x - y;
      if (event.value == 0){
      event.value = "";
      }

      Form 2 Script
      var x = this.getField("X").value;
      var y = this.getField("Y").value;
      event.value = x + y;

      Form 3 Script
      var x = this.getField("X").value;
      event.value = Math.floor(x * 0.75);
      if (event.value == 0){
      event.value = "";
      }

      Form 4 Script
      var x = this.getField("X").value;
      event.value = Math.ceil(x * 0.25);
      if (event.value == 0){
      event.value = "";
      }

      Any help / suggestions are greatly appreciated!