Hi!
i have a form that uses some JS to total some fields. I am having trouble with it not running intermittantly.
When it works, it works nicely. The issue is that sometimes it doesn't seem to trigger. The fields remain blank and the end user is able to submit the form with no totals.
In testing it seems to behave where when you fill out a field, it adds up. as you fill out more, it recalculates every time a box changed. However i've seen cases where you have to click back and forth between several boxes to get it to total.
I'm not very familiar with JS. What triggers the code to run? is there a way of forcing it to run when the user selects 'submit'?
Thanks
Mark.