Javascript Calculation Dependent on which Checkbox is Checked
I am trying to create javascript to populate a field (FieldText13) with a dollar amount based upon whether or not CheckBox9 (2 hours) or CheckBox11 (4 hours) is checked multiplied by the dollar amount that is entered by the user in FieldText11.
I've made multiple attempts but cannot get the javascript to work.
Thank you.
var cb1 = this.getField("CheckBox9").isBoxChecked(0);
var cb2 = this.getField("CheckBox11").isBoxChecked(0);
if (cb1 && cb2) {
event.value = "";
}
else if (cb1) {
event.value = ("FillText09" * "FillText09val");
}
else if (cb2) {
event.value = ("FillText11" * "FillText11val");
}
else {
event.value = "";
}
