Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Custom Calculation Scripts for PDF Form

New Here ,
Apr 11, 2020 Apr 11, 2020

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. 

 

Screen Shot 2020-04-11 at 10.57.47 pm.png

 

TOPICS
PDF forms
917
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 11, 2020 Apr 11, 2020

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 11, 2020 Apr 11, 2020
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines