Title: Form not submitting &#8211; uncaught error?
Last modified: August 22, 2016

---

# Form not submitting – uncaught error?

 *  [Newman81](https://wordpress.org/support/users/newman81/)
 * (@newman81)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/form-not-submitting-uncaught-error/)
 * Hi,
 * I’ve just updated to wordpress 4.0.1, and the most recent version of this plugin,
   and when submitting a form, nothing happens and i’m now getting a script error
   of:
 *  Uncaught Error: Syntax error, unrecognized expression: span.wpcf7-form-control-
   wrap.
 * Website is [http://www.burgess-group.com](http://www.burgess-group.com)
 * It was working fine before.
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/form-not-submitting-uncaught-error/#post-5533284)
 * You have this button element between _Postcode_ and _Address_.
 *     ```
       <button type="button" onclick="cp_obj.doLookup()" class="lookup">FIND ADDRESS &raquo;</button>
       ```
   
 * What is this and how have you put this into the form? Seemingly this is the direct
   cause of the issue.
 *  Thread Starter [Newman81](https://wordpress.org/support/users/newman81/)
 * (@newman81)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/form-not-submitting-uncaught-error/#post-5533289)
 * Hi,
 * Thanks for your response, that section is to tie the form in with a ‘postcode
   lookup’ function, which was working.
 * To get it working with contact-form-7 I added the following code to some Javascript
   as described here: [http://craftyclicks.co.uk/tutorials/postcode-lookup-in-15-minutes/](http://craftyclicks.co.uk/tutorials/postcode-lookup-in-15-minutes/)
 *     ```
       var cp_obj = CraftyPostcodeCreate();
          cp_obj.set("access_token", "xXXXXx"); // your token here
          cp_obj.set("result_elem_id", "crafty_postcode_result_display");
          /*cp_obj.set("form", "wpcf7-form");*/
          cp_obj.set("elem_company"  , "companyname");
          cp_obj.set("elem_street1"  , "address1");
          cp_obj.set("elem_street2"  , "address2");
          cp_obj.set("elem_street3"  , "address3");
          cp_obj.set("elem_town"     , "town");
          cp_obj.set("elem_postcode" , "postcode");
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Form not submitting – uncaught error?’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [script error](https://wordpress.org/support/topic-tag/script-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Newman81](https://wordpress.org/support/users/newman81/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/form-not-submitting-uncaught-error/#post-5533289)
 * Status: not resolved