2 Replies Latest reply on Jul 29, 2016 7:50 AM by try67

    javascript question (DUPLICATE)

    michaelf62582725
      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'