I have fields that calculates a total from information in a table. I had to use JavaScript to do this. I used the following code.
$(document).ready(function() { $(document).on('change','#q20 tr td[data-title="Event Type"] input',function(){ $('.TotCouncil input[type="text"]').val(countCheck('Event Type','Council')) $('.TotOther input[type="text"]').val(countCheck('Event Type','Other')) $('.TotComm input[type="text"]').val(countCheck('Event Type','Committee')) }); });
The above totals are working perfectly.
Now, I need to calculate how much is to be paid for each item. Each value needs to be multiplied by a base amount to figure out the amount paid. I have saved base amount in another field, which will be hidden.
Hidden Field
Visible fields
I currently have the Council Meeting Pay set up to use a formula, but it won't update as the Number of Council Meetings change. So I think I need to use JavaScript to do the calculation, but I am beginner when it comes to coding (above code is from using Answers).
Please help.