Using Adobe LiveCycle Designer, I can't get the script below to work using "formcalc" (a type of Javascript). I use this to calculate shipping costs for
car club items by their weight in a pdf form.
I'm only able to get the correct postage for the weights in lines 3,5 and 7 below. If I select an item that weighs between 0.11 and 0.25, the form calculates it as 2.25 instead of 1.90. Also, if the item weighs 2.51 or more,
it only calculates it as 7.00 instead of 9.00.
Please suggest any script changes that will calculate the postage as illustrated.
Thanks in advance,
Mike
car club items by their weight in a pdf form.
I'm only able to get the correct postage for the weights in lines 3,5 and 7 below. If I select an item that weighs between 0.11 and 0.25, the form calculates it as 2.25 instead of 1.90. Also, if the item weighs 2.51 or more,
it only calculates it as 7.00 instead of 9.00.
Code:
if (ShpWt >= 0.01 <= 0.10) then PostageSH = 1.90 elseif (ShpWt >= 0.11 <= 0.25) then PostageS = 2.25 elseif (ShpWt>= 0.26 <= 0.75) then PostageSH = 4.00 elseif (ShpWt > 0.76 <= 2.50) then PostageSH = 7.00 elseif (ShpWt >= 2.51) then PostageSH = 9.00 endif
Thanks in advance,
Mike
Comment