NaN error
I have the following simple script in Custom calculation script in a Text Field called AS QUOTED CM%.
When the PDF Form has yet to be populated the AS QUOTED PROFIT field is $0 & the AS QUOTED TOTAL field is blank which creates a NaN answer. I want the calculated As QUOTED CM% field to be formated for Percent but I always get an error during use which will confuse the users.
How can I create an if NaN then 0 statement which I believe will resolve ther error
event.value =
(this.getField("AS QUOTED PROFIT").value/this.getField("AS QUOTED TOTAL").value)
;
