John_Kordas@adobeforums.com wrote:
> I have put this script in to the totals field which works fine but displays $0.00.
>
> form1.costs.spetot.rawValue = form1.costs.spei1.rawValue + form1.costs.spei2.rawValue;
>
Try this instead:
var totalval = form1.costs.spei1.rawValue + form1.costs.spei2.rawValue;
if (totalval == 0 || totalval == null || totalval == "")
{
this.rawValue = "";
}
else
{
this.rawValue = totalval;
}
Hope this helps!
Justin Klei
Cardinal Solutions Group
www.cardinalsolutions.comPS - You'll get much better responses to these types of questions in the Designer forum rather than
this one.