2 Replies Latest reply on Sep 29, 2015 4:57 AM by CCSDVS21

    Multiple if statement based on isBoxChecked


      I need to add an additional variable. Previously this script worked fine:


      if (this.getField("r51").isBoxChecked(0)) {

         event.value = ( this.getField("r18").value/1000) * 13; }

      else {

         event.value=this.getField("r18").value*.4; }


      Now I need to add a condition that if field "r20" is checked off, these calculations should be divided by 2.  Any help is appreciated.