Answered
I have created a form where a quantity field is multiplied by a unit price for a total cost.
This is the code I am using:
var a = this.getField("QTY1");
var b = this.getField("UNIT PRICE1");
event.value = a.value*b.value
If the quantity column is not used, the total cost is showing up as $0.00.
How do I get the total cost column to be blank if the quantity or unit price fields are empty?
Thanks for you help.
if(event.value==0)event.value=””;