Skip to main content
aaronb40369986
Participant
February 6, 2020
Answered

Sum based on checkboxes

  • February 6, 2020
  • 1 reply
  • 1147 views

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.

This topic has been closed for replies.
Correct answer JR Boulay

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.

😉

 

 

 

1 reply

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
February 7, 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.

😉

 

 

 

Acrobate du PDF, InDesigner et Photoshopographe
aaronb40369986
Participant
February 11, 2020

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.