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

Please help with checkbox script

$
0
0

I need help.

 

I've created a form for the first time yesterday. It's body has 14 rows and 10 columns. Some of the fields on each row are totaled in a subtotal column on each row. I was able to do that part. There's also a checkbox on each row and two additional fields at the bottom. What I need is for the sub totals on each row to be grand totaled in one of those two separate fields at the bottom with the checkbox being the factor that determines which one. Essentially, if the box is checked, that rows total is only counted in one field, and if it's unchecked, it is only counted in the other field. The combined total of the two fields should equal the grand total of the sub-total column.

 

As I mentioned, this is my first attempt and therefore I'm very new with JavaScript. I lucked up and found someone else's script that allowed me to add/subtract across the rows and leave the sub-total blank if it's zero. The limit of my contribution was plugging in field names. So, I will literally have to copy and paste your script only changing the names.

 

Thank you for any assistance you can provide.


Viewing all articles
Browse latest Browse all 12130

Trending Articles



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