Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Calculation based on checkbox response.

$
0
0

Hi there,

I am hoping to get some help with a calculation problem.

I have an Acrobat XI form that needs to total a fee if the corresponding checkbox is ticked.

 

The checkboxes are named “U1”, “U2” up to “U25”

The text fields are named “CourseFee_U1”, “CourseFee_U2” up to “CourseFee_U25”

The total text field is named “TotalCourseFee”

 

If “U1” is ticked then “CourseFee_U1” is added to “TotalCourseFee”

 

This will need to loop as it is possible to have all 25 checkboxes selected.

 

 

In addition, I need to have reduced fee apply if a concession checkbox is ticked.

 

If “ConcessionApplies” is ticked then the corresponding fee text field (“ConcFees_U1”) is added to “TotalCourseFee” instead of corresponding course fee (“CourseFee_U1”).

 

My knowledge of JavaScript is very little, and I would really appreciate the help.


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>