Advertisement
Guest User

Calc Total Claim

a guest
Mar 5th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Calculation
  2. function totalClaim(){
  3.   var total = parseFloat(getValueById('fieldname')) * parseFloat(getValueById('fieldname2')) * getValueById('fieldname3');
  4.   getField("fieldname4").value = roundNumber(total, 2).toFixed(2);
  5. }
  6. //event handler
  7. getField("fieldname").onkeyup= function(){
  8.   totalClaim();
  9. }
  10.   getField("fieldname").onkeyup= function(){
  11.   totalClaim();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement