Need your help please... my code is not working...
I am trying to use a calculated field (totalTimes) and multiple that by 10.
In simple terms:
totalTimes= t1+t2+t3
totalAmount=totalTimes x 10
In the totalTimes field, I have added this Actionscript:
function ff_totalTimes_action(element, action)
{
ff_getElementByName('totalAmount').value =
Number(ff_getElementByName('totalTimes').value) *10;
ff_getElementByName('totalTimes').value = 0;
{
ff_getElementByName('totalTimes').value =
Number(ff_getElementByName('t1').value) +
Number(ff_getElementByName('t2').value) +
Number(ff_getElementByName('t3').value) ;
}
}
// ff_totalTimes_action
In the totalAmount field, I have added this Actionscript:
function ff_totalAmount_action(element, action)
{
ff_getElementByName('totalAmount').value = 0;
{
ff_getElementByName('totalAmount').value =
Number(ff_getElementByName('totalTimes').value) *10;
}
}
// ff_totalAmount_action