Please help with checkbox script


i need help.

 

i've created form first time yesterday. it's body has 14 rows , 10 columns. of fields on each row totaled in subtotal column on each row. able part. there's checkbox on each row , 2 additional fields @ bottom. need sub totals on each row grand totaled in 1 of 2 separate fields @ bottom checkbox being factor determines one. essentially, if box checked, rows total counted in 1 field, , if it's unchecked, counted in other field. combined total of 2 fields should equal grand total of sub-total column.

 

as mentioned, first attempt , therefore i'm new javascript. lucked , found else's script allowed me add/subtract across rows , leave sub-total blank if it's zero. limit of contribution plugging in field names. so, literally have copy , paste script changing names.

 

thank assistance can provide.

one way thought of, not sure if it's possible though, create 2 hidden fields each row, lined 2 columns (labeled in head "checked" , "unchecked". if box checked, subtotal row copied "checked" hidden column, , if unchecked, end in unchecked column. presort subtotals, 2 fields @ bottom merely have add respective columns.

 

i'm not sure if possible, , isn't elegant, believe scripting simpler.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues