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;
The comparison operator in JS is "==", so change this line:
if ( x = 1468 )
if ( x == 1468 )
(as well as the other if-statement).