Skip navigation
Currently Being Moderated

Java Script???? Maybe???

May 1, 2012 11:00 AM

I have a really repetive thing that is sucking up lots of my time on my deadline. I guess I can write some sort of macro(/) using java script ot get this to repeat somehow...NO time to read the entire javascript manual I found online for verison 6 . I have Acrobat X.

 

I have a row of dollar amounts

 

$$$$     $$$$$     $$$$     $$$$     $$$$     $$$$$     $$$$$     date      $$$$$total of all previous monies

 

Anyone know how to write the java script for this????

 

Thank you.

 
Replies
  • Currently Being Moderated
    May 1, 2012 11:06 AM   in reply to Brenda VT Labor

    You can use the any of the calculations options:

     

    "Field is the ____ of the following fields" and select the fields.

     

    "Simplified field notation" and just list the field names and use the addition operator between the field names.

     

    Write a custom JavaScript calculation.

     

    All of the above assumes you are using Acrobat Form Tools and a numeric format.

     
    |
    Mark as:
  • Currently Being Moderated
    May 1, 2012 11:28 AM   in reply to Brenda VT Labor

    Yes. but it can be made easier if you use a hierarchical naming convention placing one field at row one and and naming it "Row". Now highlight the field and select "Place multiple fields" and create enough fields for the number of rows. Select the row 1 field and repeat the place multiple fields across the row. You now only have to select the field name "Row.0" for the first row.

     

    With a custom JavaScript you would still need to specify each field name.

     

    event.value = Number(this.getField("Field1").value) + Number(this.getField("Field2").value) + Number( this.getField("Field3").value) + Number(this.getField("Fieldn").value);

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points