While searching for a solution, I've found a few other people working on calculators on this forum. I created one myself by pulling from two scripts that I found. One script allows for the form to calculate the total cost by using field names and the onchange event. The other script adjusts the value of checkboxes (as well as calculating the total cost via the field names), using the onclick event, so that the total will reflect the click action.
If I leave the javascript in the fields, the calculation works, but the generated e-mail only shows the field titles - not the values. If I remove the script, the opposite happens.
I have attached a backup of the form. Also, a direct link to the form is at:
http://www.planetbobstudios.com/web-estimate-calculator.html
I'm not sure why the values of the fields aren't being included in the e-mail. [file name=web_price.cfbak size=24613]http://www.chronoengine.com/images/fbfiles/files/web_price.cfbak[/file]
If I leave the javascript in the fields, the calculation works, but the generated e-mail only shows the field titles - not the values. If I remove the script, the opposite happens.
I have attached a backup of the form. Also, a direct link to the form is at:
http://www.planetbobstudios.com/web-estimate-calculator.html
I'm not sure why the values of the fields aren't being included in the e-mail. [file name=web_price.cfbak size=24613]http://www.chronoengine.com/images/fbfiles/files/web_price.cfbak[/file]