calculated form field

  • Thread starter Thread starter pat walch
  • Start date Start date
P

pat walch

I have a Javascript that calculates a quiz score from form
fields. How can I include that score in the confirmation and
also have it writtent to the file?

Thanks
 
Hi Pat,
stick the value into a hidden field, eg
<script type="text/javascript">
function tallyScore(){
// your code to tally up the score
document.forms[0].score.value = yourScoreVariable;
}
</script>
<form...
<input type="hidden" name="score" value="">

Jon
Microsoft MVP - FP
 
Hi Jon. Thanks so much. That works perfectly! I appreciate
your help.

Pat
-----Original Message-----
Hi Pat,
stick the value into a hidden field, eg
<script type="text/javascript">
function tallyScore(){
// your code to tally up the score
document.forms[0].score.value = yourScoreVariable;
}
</script>
<form...
<input type="hidden" name="score" value="">

Jon
Microsoft MVP - FP

pat said:
I have a Javascript that calculates a quiz score from form
fields. How can I include that score in the confirmation and
also have it writtent to the file?

Thanks


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top