Check Boxes and Sum
Hello together,
I'm trying to create a form, where, if I check a box or boxes, the value will be added as a total sum.
for example:
CheckBox1 = 3
CheckBox2 = 6
Checkbox3 = 3
if 1 + 2 = checked thank the Total in field "TotalSum" should be 9.
If all boxes are unchecked than 0.
I tried this script but this works only as "else", not as "and".
sorry, I'm totally new in adobe or scripting...
if (this.getField("1.0").isBoxChecked(0))
event.value = 0;
else
if (this.getField("1.1").isBoxChecked(0))
event.value = 3;
else
if (this.getField("1.2").isBoxChecked(0))
event.value = 6;
else
if (this.getField("1.3").isBoxChecked(0))
event.value = 3;
else
event.value = 0; Thank you in advance,
Hinnerk
