5 Replies Latest reply on Jan 4, 2013 9:32 AM by hrpo

    It works on Reader but not on centralform

    hrpo

      My javascript doesn't work on centralform but work on reader, here is my simple javascript:

       

      var VolEx = this.getField("ExistTrafficVolumes").value;

      var FundS = this.getField("FundingSystem").value;

      if (FundS == 'Urban STP - HP'){

      if ((VolEx >=0) && (VolEx <= 2500)) event.value = 6;

      if ((VolEx >=2501) && (VolEx <= 5000)) event.value = 9;

      if ((VolEx >=5001) && (VolEx <= 7500)) event.value = 12;

      if ((VolEx >=7501) && (VolEx <= 10000)) event.value = 15;

      if ((VolEx >=10001) && (VolEx <= 12500)) event.value = 18;

      if ((VolEx >=12501) && (VolEx <= 15000)) event.value = 21;

      if ((VolEx >=15001) && (VolEx <= 17500)) event.value = 24;

      if ((VolEx >=17501) && (VolEx <= 20000)) event.value = 27;

      if (VolEx >=20001) event.value = 30;} else {

      event.value ="N/A";}

       

      It is really frustrating . What's wrong with my script ? or central form error ? (the same with radio button, & unsolved issues)