These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Total Sum for the Cost Field of a Programmed List and Combo Field Form

KDCS
Registered: Sep 30 2009
Posts: 36
Answered

I have a XFA form that uses Combo Fields to calculate the extended cost of various items. The form allows the end user to add new line items that include the same extended cost field. I need to get a grand total of the extended cost fields as new line items are added to the form by the end user. Can anyone help with the script or any suggestions as to where I can find the script?

Thank you.

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi KDCS,

You may find a script close to what you need from one of the example forms in the Forms section of the Gallery here at this site ( top menu on every page of AUC). There is also a library of example forms included in LiveCycle Designer- it's been a while since I perused it but I think there is a Dynamic Purchase Order form that includes a grand total field.

Typically scripts you find are not direct copy/paste operations and you will need to modify them to fit your situation. Sometimes that simply means switching field names in the script to the field names for your form. Here's a little primer on things to consider when copying/pasting scripts you may find useful-
http://www.acrobatusers.com/blogs/thomp/copying-and-pasting-code

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
KDCS
Registered: Sep 30 2009
Posts: 36
Thank you Dimitri.
I found a script in one of the sample forms included in LiveCycle Designer. I did not see that one when I first searched for a sample script.

Thanks again.