2 Replies Latest reply on Jul 28, 2016 2:05 PM by michaelf62582725

    debug issue

    michaelf62582725 Level 1

      var g29 = this.getField("29G");
      var g26 = this.getField("26G");
      var g1  = this.getField("Gauge");

      if (g29.value == 'Yes') && (g26.value == 'Yes')
      || (g29.value == 'Off') && (g26.value == 'Off'){
      g1
      .value='ERROR'
      } else if (g29.value == 'Yes') && (g26.value == 'Off') {
      g1
      .value='29 GA'
      } else if (g29.value == 'Off') && (g26.value == 'Yes') {
      g1
      .value='26 GA'
      }

       

      Any idea what I'm doing wrong? I'm gettng a syntax error at g1.value='ERROR'