4 Replies Latest reply on May 27, 2014 10:45 PM by gwhPoster

    Contact form won't submit

    gwhPoster Level 1

      Hi everyone,

       

      I have the following code as my contact form but when I click the submit button, nothing happens, ie. it just stays on the same page and none of the data gets inserted into the CRM. I wondered if anyone can see any problems with the code below?

       

      Appreciate any advice.

       

       

      <form name="catwebformform22024" method="post" onsubmit="return checkWholeForm22024(this)" enctype="multipart/form-data" action="/FormProcessv2.aspx?WebFormID=70380&amp;OID={module_oid}&amp;OTYPE={module_otype} &amp;EID={module_eid}&amp;CID={module_cid}">

          <span class="req">*</span>  Required

          <table class="webform" cellspacing="0" cellpadding="2" border="0">

              <tbody>

                  <tr>

                      <td><label for="Title">Title</label><br />

                      <select name="Title" id="Title" class="cat_dropdown_smaller">

                      <option value="913107">DR</option>

                      <option value="913106">MISS</option>

                      <option value="913103" selected="selected">MR</option>

                      <option value="913104">MRS</option>

                      <option value="913105">MS</option>

                      </select></td>

                  </tr>

                  <tr>

                      <td><label for="FirstName">First Name <span class="req">*</span></label><br />

                      <input type="text" name="FirstName" id="FirstName" class="cat_textbox" maxlength="255" /> </td>

                  </tr>

                  <tr>

                      <td><label for="LastName">Last Name <span class="req">*</span></label><br />

                      <input type="text" name="LastName" id="LastName" class="cat_textbox" maxlength="255" /> </td>

                  </tr>

                  <tr>

                      <td><label for="EmailAddress">Email Address <span class="req">*</span></label><br />

                      <input type="text" name="EmailAddress" id="EmailAddress" class="cat_textbox" maxlength="255" /> </td>

                  </tr>

                  <tr>

                      <td><label for="WorkPhone">Work Phone Number <span class="req">*</span></label><br />

                      <input type="text" name="WorkPhone" id="WorkPhone" class="cat_textbox" maxlength="255" /></td>

                  </tr>

                  <tr>

                      <td><label for="CellPhone">Mobile Phone Number</label><br />

                      <input type="text" name="CellPhone" id="CellPhone" class="cat_textbox" maxlength="255" /></td>

                  </tr>

                  <tr>

                      <td><label>Preferred Contact Method</label><br />

                      <input type="radio" name="CAT_Custom_328076" id="CAT_Custom_328076_0" value="Phone" />Phone<br />

                      <input type="radio" name="CAT_Custom_328076" id="CAT_Custom_328076_1" value="Email" />Email</td>

                  </tr>

                  <tr>

                      <td><label for="CAT_Custom_328077">Comments/Enquiries</label><br />

                      <textarea name="CAT_Custom_328077" id="CAT_Custom_328077" cols="10" rows="4" class="cat_listbox" onkeydown="if(this.value.length&gt;=4000)this.value=this.value.substring(0,3999);"></text area></td>

                  </tr>

                  <tr>

                      <td><input class="cat_button" type="submit" value="Submit" id="catwebformbutton" /></td>

                  </tr>

              </tbody>

          </table>

          <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>

          <script type="text/javascript">

      //<![CDATA[

      var submitcount22024 = 0;function checkWholeForm22024(theForm){var why = "";if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value); if (theForm.WorkPhone) why += isEmpty(theForm.WorkPhone.value, "Work Phone Number"); if(why != ""){alert(why);return false;}if(submitcount22024 == 0){submitcount22024++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}

      //]]>

      </script>

      </form>