2 Replies Latest reply on Oct 14, 2016 3:27 PM by rb17024267

    Assigning a value to a text field from selecting a radio button

    rb17024267

      I'm trying to assign a value to a text field when they choose a radio button.  It has worked before but now when I enter the Javascript in the Custom Calculation script of the text field, it disappears and remains blank.  I don't know how to resolve it.  This is the Javascript I tried to use

       

      if(this.getField("Package").value == "Off") event.value = "";

      if(this.getField("Package").value == "Package1") event.value = "400";

      if(this.getField("Package").value == "Package2") event.value = "600";

      if(this.getField("Package").value == "Package3") event.value = "700";

      if(this.getField("Package").value == "Package4") event.value = "800";

      if(this.getField("Package").value == "Package5") event.value = "500";

      if(this.getField("Package").value == "Package6") event.value = "700";

      if(this.getField("Package").value == "Package7") event.value = "800";

      if(this.getField("Package").value == "Package8") event.value = "900"