Multiple if statements
I am using this javascrpit which works well
if (this.getField("CheckBox2").isBoxChecked(0)=="1")
{event.value=this.getField("ofTrainingDays").value*10.00;} else event.value = 0;
if (event.value==0)
- event.value="";
I need to add a statement to the start of it to check the status of check box 3. So if checkbox 3 is checked then the rest of the formula will be ignored and the "ofTrainingDays" will have a value of 0.
if (this.getField("CheckBox3").isBoxChecked(0)=="1")
{event.value=this.getField("ofTrainingDays").value0;} else
if (this.getField("CheckBox2").isBoxChecked(0)=="1")
{event.value=this.getField("ofTrainingDays").value*10.00;} else event.value = 0;
if (event.value==0)
- event.value="";
However this does not work correctly any Ideas