Hi All
I have a form that I thought was working - wrong!
It is the simplest of calculations QTY x UNIT PRICE = Total Amount
if the price is less than 3 digits, there is no issue, if the unit price is more than 4 digits - I get a NaN in the Total Amount field.
now the quotation form can either be in dollars, Pounds or Euros (depending on what is selected in a combo box), so the Custom format script I have on the Total Amount field is this:
if (this.getField("Currency").value == "USD $" ){ AFNumber_Format(2, 0, 0, 0,"$", true)}; if (this.getField("Currency").value == "GBP £" ){ AFNumber_Format(2, 0, 0, 0,"£", true)}; if (this.getField("Currency").value == "EUR €" ){ AFNumber_Format(2, 0, 0, 0,"€", true)}; if(event.value == "$0.00") event.value = ''; if(event.value == "£0.00") event.value = ''; if(event.value == "€0.00") event.value = '';
The actual calculation is just the built in calculation 'value is the product of...'.
Any ideas what I have done wrong?
thanks :)