New Forum | Previous | Next | (P-PDF) Beginners
Conf: (P-PDF) Beginners, Msg: 142042
Date: 10/31/2005 10:26 AM
I have a simple problem of subtracting two values in a form but I want to prevent any negative values from being shown, if the value is negative it should show just zero. How can I alter the subtraction code to achieve this? The code for subtraction is simply:
var f = this.getField("Text72");
var g = this.getField("Text73");
event.value = f.value - g.value;
How can I make "event.value" positive or 0 only?