Javascript AND computed field AND $00.00 format

I have generate HTML for all fields checked! :slight_smile:

I’m having problems with the following code:

var f = document.forms[0];

var p = new Number(f.ProductPrice.value);

var q = new Number(f.Quantity.value);

var total = p * q;

f.LineTotal.value = total;

f.TransactionAmount.value = total;

LineTotal and TransactionAmount are both computed when composed.

In addition, when I use Quantity of 9 and ProductPrice of 10 the editable field gets set to 90 and 90.00.

When I set the fields to computed or computed when composed, the computed values for LineTotal or TransactionAmount don’t come through either.

Help!

Marcus

Subject: Javascript AND computed field AND $00.00 format

That total is upated but will be visible after submitting the document.

Subject: RE: Javascript AND computed field AND $00.00 format

That means that I could just as soon compute with Formula Language!

Can’t I do it any other way?

Marcus