I have been racking my brain on this for a while, with noting more than a sore brain.
I am creating a user form for designing a product and creating a self-estimate based on components. I sell in sets of 25 and each piece has it's own cost per 25. Each piece can be produced in two ways (A or B process). I have a drop-down field for the Process to be used and another for the qty in intervals of 25.
Example:
Product 57 = $50 (A) or $65 (B) per 25
Order = 100
Process chosen = A
Flat Rate = $125
so the calculation should be: =((100/25)*52)+125 = 325
I cannot do this for the life of me! I can in Excel, this i am able to do, however for universality i need to use a PDF. my research says a custom javascript calculation is needed:
assume that drop-down for process is called Process 57 and the Qty drop-down is qty 57
Any direction would be greatly appreciated.
Thanks
Have you looked at the references for Acrobat JavaScript and Mozilla JavaScript?
JavaScript is object orientated and requires one to establish an association to an object like a named field and then use either a property, like value, of that object or a method of that object.
From your text and supplied values, it is not very clear how your computation works. But I will make the following guess:
George Kaiser