Skip navigation
Currently Being Moderated

Form Calculations

Feb 17, 2012 7:47 AM

Tags: #javascript #forms #pdf_fillable_forms #livecycle_designer_es #calculations #livecycle_form #livecycle_form_calculation


I'm finally wrapping up this form when i came to the conclusion that i cant figure out how to do these javascript calculations . If a knowledgeable person could please help me with this, it would be much appreciated.

I need the miles field to default to 0.00 mi, tolls, parking, other, total for this trip and amount to be received by employee fields to default to $0.00

The total for this trip field should calculate = amount entered by user in miles multiplied by 0.555  + amount in tolls+ amount in parking+amount in other

0.555 is the $/mile amount


amount received by employee= total for this trip fields added (the user may add as many of these sections as they need so there can be multiple total for this trip fields.


This is the form:*E*io*Bm2-UPFLKz-L-Zg

I used LiveCycle ES 8.2



i dont know what i'd do with out adobe forums...

  • Currently Being Moderated
    Feb 17, 2012 9:08 AM   in reply to ioanah1503



    Here is your form:*Icl4XM5p0-ipWw.


    I am also make a few recommendations on layout, spacing and font alignment. I have made the two subforms positioned, as they do not contain expanding objects. The form still flows.


    Hope that helps,



    Mark as:
  • Currently Being Moderated
    Feb 17, 2012 11:00 AM   in reply to ioanah1503

    Try this for size:*Icl4XM5p0-ipWw. Look at the hierarchy for a mixture of positioned and flowed subforms.


    Also the calc in the Total.



    Mark as:
  • Currently Being Moderated
    Feb 29, 2012 9:27 AM   in reply to ioanah1503



    Here is the form back to you:


    The issue is that the details part was split into different sections and the references in the script had to be changed to reflect this.


    Also the spell checker does not check script, only text in form objects:


    Parallels Desktop.png


    Hope that helps,



    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