Note that there are some explanatory texts on larger screens.

plurals
  1. POonSubmit not working in any browser
    text
    copied!<p>I have a simple form. I want to calculate the value of hidden field of form using my simple formula (divide rate from drop down by 100 and then multiply it with the estimated pay from text field.</p> <p>However for some strange reason onSubmit is not working on the form. I want to calculate the above value when form is submitted but it is not being called on any browser. It is really strange problem.</p> <p>Here is the code:</p> <pre><code> &lt;script type="text/javascript"&gt; function calc1() { var a= document.getElementById('inf_custom_FLRaterClassCode0').value; var b = document.getElementById('inf_custom_FLRaterEstimatedPayroll').value; document.getElementById('inf_custom_EstimatedQuote').value=parseFloat(a)/100 * parseFloat(b) ; } &lt;/script&gt; &lt;form accept-charset="UTF-8" action="https://kg933.infusionsoft.com/app/form/process/968a6b704587136af8684f30cc8c5cf4" class="infusion-form" method="GET" onSubmit="calc1();"&gt; &lt;input name="inf_form_xid" type="hidden" value="968a6b704587136af8684f30cc8c5cf4" /&gt; &lt;input name="inf_form_name" type="hidden" value="Full Quote - Florida Rate" /&gt; &lt;input name="infusionsoft_version" type="hidden" value="1.28.7.21" /&gt; &lt;div class="infusion-field"&gt; &lt;label for="inf_field_FirstName"&gt;First Name *&lt;/label&gt; &lt;input class="infusion-field-input-container" id="inf_field_FirstName" name="inf_field_FirstName" type="text" /&gt; &lt;/div&gt; &lt;div class="infusion-field"&gt; &lt;label for="inf_field_LastName"&gt;Last Name *&lt;/label&gt; &lt;input class="infusion-field-input-container" id="inf_field_LastName" name="inf_field_LastName" type="text" /&gt; &lt;/div&gt; &lt;div class="infusion-field"&gt; &lt;label for="inf_field_Company"&gt;Company *&lt;/label&gt; &lt;input class="infusion-field-input-container" id="inf_field_Company" name="inf_field_Company" type="text" /&gt; &lt;/div&gt; &lt;div class="infusion-field"&gt; &lt;label for="inf_field_Email"&gt;Email *&lt;/label&gt; &lt;input class="infusion-field-input-container" id="inf_field_Email" name="inf_field_Email" type="text" /&gt; &lt;/div&gt; &lt;div class="infusion-field"&gt; &lt;label for="inf_field_Phone1"&gt;Phone 1 *&lt;/label&gt; &lt;input class="infusion-field-input-container" id="inf_field_Phone1" name="inf_field_Phone1" type="text" /&gt; &lt;/div&gt; &lt;div class="infusion-field"&gt; &lt;label for="inf_custom_FLRaterClassCode0"&gt;FL Rater - Class Code #2 *&lt;/label&gt; &lt;select id="inf_custom_FLRaterClassCode0" name="inf_custom_FLRaterClassCode0"&gt;&lt;option value=""&gt;Please select one&lt;/option&gt;&lt;option value="9519"&gt;9519&lt;/option&gt;&lt;option value="5473"&gt;5473&lt;/option&gt;&lt;option value="5472"&gt;5472&lt;/option&gt;&lt;option value="9516"&gt;9516&lt;/option&gt;&lt;option value="8393"&gt;8393&lt;/option&gt;&lt;option value="8380"&gt;8380&lt;/option&gt;&lt;option value="5188"&gt;5188&lt;/option&gt;&lt;/select&gt; &lt;/div&gt; &lt;div class="infusion-field"&gt; &lt;label for="inf_custom_FLRaterEstimatedPayroll"&gt;FL Rater - Estimated Payroll *&lt;/label&gt; &lt;input class="infusion-field-input-container" id="inf_custom_FLRaterEstimatedPayroll" name="inf_custom_FLRaterEstimatedPayroll" type="text" /&gt; &lt;/div&gt; &lt;input name="inf_custom_EstimatedQuote" type="hidden" value="" /&gt; &lt;div class="infusion-submit"&gt; &lt;input type="submit" value="Submit" /&gt; &lt;/div&gt; &lt;/form&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload