Update: The below code is now working but I need a way to round the value in Text155 to only two decimal places. Can someone help?
Hi, I have a javascript function that is returning NaN in Text155 field. Can someone tell me what I'm doing wrong? If you haven't already guessed, I am also new to the Javascript world. Thanks!
Hi, I have a javascript function that is returning NaN in Text155 field. Can someone tell me what I'm doing wrong? If you haven't already guessed, I am also new to the Javascript world. Thanks!
Code:
<script language="Javascript">
function sum()
{
document.form1.Text155.value = (parseInt(document.form1.Text52.value) + parseInt(document.form1.Text53.value) + parseInt(document.form1.Text54.value) + parseInt(document.form1.Text55.value) + parseInt(document.form1.Text56.value));
return false;
}
function FP_callJS() {//v1.0
eval(arguments[0]);
}
</script>
Comment