Jump to content

EBickmann

Members
  • Posts

    2
  • Joined

  • Last visited

EBickmann's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'd spotted that too.... but with even the correction it still doesn't play nicely... function calculate() { Â Â var rval = document.getElementById("InsertRecordTool_Retail_Value").value; Â Â var rrate = document.getElementById("InsertRecordTool_Sug_Rental_Rate").value; Â Â var drate = (rval * rrate); Â Â document.getElementById("InsertRecordTool_Daily_Rate").value=(drate); } /* On submitting the webform, the function calculate is executed */ document.getElementById("caspioform").onsubmit=calculate;
  2. I'm having trouble with a script. I understand that I can add to the footer of a submission DP a script that should take two "user" inputted values (Tool_Retail_Value and Tool_Sug_Rental_Rate) and perform a calculation using them and then take the result and put it back into the table into a third field (Tool_Daily_Rate). So what's wrong? function calculate() { Â Â var rval = document.getElementById("InsertRecordTool_Retail_Value").value); Â Â var rrate = document.getElementById("InsertRecordTool_Sug_Rental_Rate").value); Â Â var drate = Math.abs(rval * rrate); Â Â document.getElementById("InsertRecordTool_Daily_Rate").value=drate; } /* On submitting the webform, the function calculate is executed */ document.getElementById("caspioform").onsubmit=calculate;
×
×
  • Create New...