#Hi everyone! I am trying to add a calculator function to a form and am having trouble.

4 messages · Page 1 of 1 (latest)

rare zealot
#

One of the questions on the form is how many employees are in need of training and the options range from 5 and up. From 5-24 the price is $200 per person and for 25+ the price is $200 per person. The input is a text box and when someone submits the form, I need the price to be calculated for the number of people they entered that are in need of training. I will add the code to the form below. Thanks!

<script type="text/javascript" id="aoform-script-de8de1f1-3a00-423b-ab00-335d3b16a747:d-0001">!function(o,t,e,a){o._aoForms=o._aoForms||[],o._aoForms.push(a);var n=function(){var o=t.createElement(e);o.src=("https:"==t.location.protocol?"https://":"http://")+"info.tpctraining.com/acton/content/form_embed.js",o.async=!0;for(var a=t.getElementsByTagName(e)[0],n=a.parentNode,c=document.getElementsByTagName("script"),r=!1,s=0;s<c.length;s++){if(c[s].getAttribute("src")==o.getAttribute("src"))r=!0;}r?typeof(_aoFormLoader)!="undefined"?_aoFormLoader.load({id:"de8de1f1-3a00-423b-ab00-335d3b16a747:d-0001",accountId:"4937",domain:"info.tpctraining.com",isTemp:false,noStyle:false,prefill:false}):"":n.insertBefore(o,a)};window.attachEvent?window.attachEvent("onload",n):window.addEventListener("load",n,!1),n()}(window,document,"script",{id:"de8de1f1-3a00-423b-ab00-335d3b16a747",accountId:"4937",domain:"info.tpctraining.com",isTemp:false,noStyle:false,prefill:false});</script>

nimble scarab
#

Could you share your code well formated and in 3 backticks js <your code> 3 backticks?

rare zealot
#

Honestly I'm not sure how to do that

still stratus
#

This looks like minified code and is not the original version that you wrote. Can you share the original code instead?