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

Sum based on checkboxes

New Here ,
Feb 06, 2020 Feb 06, 2020

I need to calculate a Total based on 3 checkboxes.  I set a value in Checkbox1 and Checkbox2 Properties/Options Export Value.  These are fixed values of 23.99 adn 37.99 respectively.  I have a 3rd checkbox called Maintenance and a field next to it called Maintenance Custom Price, where the field will be filled in as needed.

 

I want to add the totals only if checked.  Total newbie at Java, tried googling to figure it out myself, not getting it.  Any help would be fantastic!!

Thanks.

TOPICS
PDF forms
1.2K
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
1 ACCEPTED SOLUTION
Community Expert ,
Feb 07, 2020 Feb 07, 2020

Fortunately, JavaScript is not required to perform such simple calculations.

Just be sure to use "number" formated values in checkboxes: "0987654321" (numbers) and "." (dot) only.

😉

 

Capture_032.png

 

 


Acrobate du PDF, InDesigner et Photoshopographe

View solution in original post

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 ,
Feb 07, 2020 Feb 07, 2020

Fortunately, JavaScript is not required to perform such simple calculations.

Just be sure to use "number" formated values in checkboxes: "0987654321" (numbers) and "." (dot) only.

😉

 

Capture_032.png

 

 


Acrobate du PDF, InDesigner et Photoshopographe
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
New Here ,
Feb 11, 2020 Feb 11, 2020
LATEST

Right thanks.  But in my example I need a 3rd checkbox without a value, the value is coming from a field "Maintenance Custom Price" where the user will type in a value in the field, and I need it to add that field into the total only if that 3rd checkbox "Maintenance" is checked.

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