I've created a form that is used to calculate monthly expenses. The problem I'm having is on the last page I'm gathering information from previous pages (session to data) that auto fills the fields on the last page. I've created a javascript that is suppose to subtract the five fields on the page for a grand total but this doesn't work. If I delete the session to data from the load section the javascript works perfectly.
Page in Question:
http://www.garranteedsolutions.com/budget?chronoform=BudgetPage7
if you need to edit the fields I've created this page:
http://www.garranteedsolutions.com/budget?chronoform=BudgetPage8
Javascript
Thank you,
Carl
Page in Question:
http://www.garranteedsolutions.com/budget?chronoform=BudgetPage7
if you need to edit the fields I've created this page:
http://www.garranteedsolutions.com/budget?chronoform=BudgetPage8
Javascript
window.addEvent('domready', function() {
$('spendable').addEvent('change', rekenen1);
$('housetotal').addEvent('change', rekenen1);
$('cartotal').addEvent('change', rekenen1);
$('creditortotal').addEvent('change', rekenen1);
$('misctotal').addEvent('change', rekenen1);
});
function rekenen1(){
$('grandtotal').value = Number($('spendable').value) + Number($('housetotal').value) + Number($('cartotal').value) + Number($('creditortotal').value) + Number($('misctotal').value) ;
}
Thank you,
Carl