I want to use a script like the following
<script language="JavaScript">
function calculate(form1)
{
var subt = parseFloat(form1.subtotal.value);
var sale = parseFloat(form1.salestax.value);
var tax = subt*sale;
var tprice = subt+tax;
form1.linetotal.value = tprice
}
</script>
There seems to be a problem because of the column name.
Instead of subtotal I would need to use Final_Amount
The _ between Final and Amount is maybe a problem.
If I test it with another field which has only one word as column name, it works.
How can I get it running with the name Final_Amount?
--
Michael Skaide
http://www.cycle24.de
<script language="JavaScript">
function calculate(form1)
{
var subt = parseFloat(form1.subtotal.value);
var sale = parseFloat(form1.salestax.value);
var tax = subt*sale;
var tprice = subt+tax;
form1.linetotal.value = tprice
}
</script>
There seems to be a problem because of the column name.
Instead of subtotal I would need to use Final_Amount
The _ between Final and Amount is maybe a problem.
If I test it with another field which has only one word as column name, it works.
How can I get it running with the name Final_Amount?
--
Michael Skaide
http://www.cycle24.de