Previous | Next | (P-PDF) Beginners
Topic: Compare Java Script
Conf: (P-PDF) Beginners, Msg: 23160
From: Jub
Date: 6/30/2001 08:44 AM
Christie,
Are you trying to put the value of f minus the value of g into a third field, except when g is greater than f?
If so, try something like this...
var f = this.getField("Q1");
var g = this.getField("Q2");
if(g.value > f.value)
{
event.value = 0;
}
else
{
event.value = f.value - g.value;
}
Let us know if that helps.
Jub