javascript - Complex Adobe Acrobat calculation -


I have a complex pricing form that I use for all my citations Excel , Although quoted is becoming more and more time consuming and I want to create a PDF version that people can change options to fit their budget.

I have tried to know this Javascript but the formatting is foreign and I am not getting anybody who has calculated the same, is anyone able to help?

There will be many 'squares' where each section will be calculated in a grand total, but each 'section' is basically the same.
But the trick is that I would like to keep each 'section' a basic cost which is shown only after a valid quantity (eg 25+). Each radio button 'choice' should also have a unique value, such as like . SizeChoice1 = 1, SizeChoice2 = 2, SizeChoice3 = 3. - So the content is the excel style:

If the volume> 25 (250+ (Size Change (1,2 -3)) * QTY) + (Color Option (1,2) And 3) * quantity) + stockchay (1,2 and 3) * quantity), if qty and lieutenant; 25 = 0

More goals are scored more if possible.

Are the options mutually exclusive? Maybe not But if so, you will use the checkbox instead of the radio buttons, which meet with the same name, but a different return value. And they behave like a radio button.

This Excel Formula (Acrobat) does not just want to translate in Javascript, because the concepts of Excel formulas and Acrobat JavaScript are far away, and this is only a question when you fall horribly on your nose (I know what I'm talking about, I've been burned a lot more often when I was in a good mood and could change the customer's Excel spreadsheet into a PDF form.

What you will do instead, do a quick analysis of the form, and what to do, and then, you can build the form after that argument. Keep in mind that (Acrobat) Javascript Allows to create a loop (ideal when you have functional blocks, and use a counter in the names of your area), or function (where you can call the necessary, pass arguments In addition, keep the field event sequence in mind, whose great side effect is that it can consolidate all the logic in the same area, which is also not a part of the field, is included in the calculation.

In your case, the calculation depends very much on the choice of names of the fields. It's okay, your code is small and elegant, it's not so good, your code will be a mess

Now, for your example, there is not enough information on what to do with it. Therefore, adding the findings of quick analysis of your question can be a good idea.

I think I know what you want to do, and in this case, the whole thing becomes very simple. / P>


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -