1 Reply Latest reply on Mar 20, 2015 10:22 AM by try67

    Need help creating script for specific instance

    A-ron7850

      I am having trouble coming up with a working script for this part of the pricing form I am editing. I am trying to get the calculation fields to the right to change and populate in the respective field based on the selection in the Material Type dropdown. Would it be less of a headache if I made another text field to calculate the LE versions separately instead of trying to merge them into one field? I have attached screenshots below to give you an example of what I'm working with. Any help with this is greatly appreciated!


      Script I'm tinkering with at the moment:


      //Dropdown37 = Quantity Field

      //Type of Door IB = Material Type dropdown

       

      var x = this.getField("Type of Door IB").value;

      if ( x = 1468 ) event.value = x * this.getField("Dropdown37").value;

      if (x = 1202) event.value = x * this.getField("Dropdown37").value;

      else event.value = 0;

       


      Screen Shot 2015-03-20 at 11.54.37 AM.png

      Screen Shot 2015-03-20 at 11.55.10 AM.png