Copy link to clipboard
Copied
Hi,
I would like put a custom calculation script to a pdf document but I do not know how to write javascript.
The calculation is
If I click $100 checkbox HypoComp1= HypoEstQ1*100
If I click $120 checkbox HypoComp1= HypoEstQ1*100
The thing is the checkboxes has same name but but different "export value" so it works like radio button
If you think radio button works better for this formula I can turn the checkboxes to radio button.
If you have any idea about how to do it, I would appreciate. Cheers.
Copy link to clipboard
Copied
What you've written shows the same result (HypoEstQ1 * 100) regardless of which check box is selected. Can you clarify, and also state what the result should be if neither check box is selected, and provide the export values of the check boxes as well. Finally, what is the field name of the checkboxes?
Copy link to clipboard
Copied
Assuming you meant 120 in the second line, all you have to do is to multiply the check-box field by HypoEstQ1. You don't need a script at all. You can do it using the Product option under the Calculate tab of HypoComp1.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more