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

Hello,

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:https://acrobat.com/?i=n*E*io*Bm2-UPFLKz-L-Zg

I used LiveCycle ES 8.2

 

THANK YOU THANK YOU THANK YOU!!!!!!

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

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

    Hi,

     

    Here is your form: https://acrobat.com/#d=NaiEoId*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,

     

    Niall

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

    Try this for size: https://acrobat.com/#d=NaiEoId*Icl4XM5p0-ipWw. Look at the hierarchy for a mixture of positioned and flowed subforms.

     

    Also the calc in the Total.

     

    Niall

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

    Hi,

     

    Here is the form back to you: https://acrobat.com/#d=Nm2jjpCvBeW9w-T4mXtuWA.

     

    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,

     

    Niall

     
    |
    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