The solution is different depending if this is for a LiveCycle XFA form or an Acrobat Acroform (the scripting engine is different for each).
If this is for an AcroForm take a look at these articles on JavaScript Corner here at AcrobatUsers.com for scripting in combo boxes and field calculations-
If it is for a LiveCycle XFA form there is an excellent example provided in the Sample Library of the Designer program (open Designer, click on Explore Sample Forms in the opening splash screen then navigate to Purchase Order ->Dynamic INteractive ->Forms -> PurchaseOrder.pdf) You can examine the scripts used for the fields in the script window (Window ->Script Editor)Hope that helps,
The solution is different depending if this is for a LiveCycle XFA form or an Acrobat Acroform (the scripting engine is different for each).
If this is for an AcroForm take a look at these articles on JavaScript Corner here at AcrobatUsers.com for scripting in combo boxes and field calculations-
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/change_another_field/[/url]
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/form_calculations/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/form_calculations/[/url]
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/scripts_form_fields/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/scripts_form_fields/[/url]
If it is for a LiveCycle XFA form there is an excellent example provided in the Sample Library of the Designer program (open Designer, click on Explore Sample Forms in the opening splash screen then navigate to Purchase Order ->Dynamic INteractive ->Forms -> PurchaseOrder.pdf) You can examine the scripts used for the fields in the script window (Window ->Script Editor)Hope that helps,
Dimitri
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
Dimitri Munkirs
WindJack Solutions
pdfscripting.com