15 Replies Latest reply on Mar 30, 2014 4:57 AM by JThompson575

    Drop down list auto populates another field

    JThompson575

      I have created a drop down list that auto populates another field.  However, if I choose a different item on drop down list the auto populate field, which should go blank, doesn't change.  Here is the javascript that I created for the auto populated field, what am I missing?

       

      var v = this.getField("SubSupplierRow1").value;

      if (v=="2") event.value = "65";

      else if (v=="6") event.value = "50";

      else if (v=="9") event.value = "50";

      else if (v=="13") event.value = "50";

      else if (v=="27") event.value = "50";

      else if (v=="30") event.value = "50";

      else if (v=="33") event.value = "50";

      else if (v=="40") event.value = "50";

      else if (v=="45") event.value = "50";

      else if (v=="51") event.value = "50";

      else if (v=="56") event.value = "50";

      else if (v=="58") event.value = "50";

      else if (v=="61") event.value = "50";

      else if (v=="70") event.value = "50";

      else if (v=="73") event.value = "50";

      else if (v=="77") event.value = "50";

      else if (v=="79") event.value = "50";

      else if (v=="96") event.value = "50";

      else event.value == " "