Title: ClientRect is not defined
Last modified: November 29, 2019

---

# ClientRect is not defined

 *  [alan1950](https://wordpress.org/support/users/alan1950/)
 * (@alan1950)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/clientrect-is-not-defined/)
 * Hi, I’m fairly new to WP & JavaScript.
    I’ve created a page containing some Tablepress
   tables and a contact form. In order to validate the form (and also display certain
   info), I use the following “Submit” which results in “ClientRect is not defined”:
   <input type=”submit” value=”Apply” onclick=”return validateApplyClubStandardV4()”
   class=”wpcf7-form-control wpcf7-submit” /> Can anyone advise please?
 * I suspect that it’s a separate issue, but the code thinks (incorrectly) that 
   there are only 8 rows of the tablepress table, this occurs when the function 
   that reads the table is called via validateApplyClubStandardV4. If called separately
   it works fine.
    I use WPCoder to insert the JavaScript into the page Thanks for
   reading.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fclientrect-is-not-defined%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [alan1950](https://wordpress.org/support/users/alan1950/)
 * (@alan1950)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/clientrect-is-not-defined/#post-12191286)
 * further update to this problem, I just tried this on a simple straightforward
   form resulting in the same issue. Details are:
 * WordPress 5.2.4 running Zakra theme.
    Contact form 7 Version 5.1.5
 * Uncaught ReferenceRrror: ClientRect is not defined at Object.processinput at 
   HTMLFormElement.OnSubmit
 *  Thread Starter [alan1950](https://wordpress.org/support/users/alan1950/)
 * (@alan1950)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/clientrect-is-not-defined/#post-12191291)
 * Post to update the tags

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

The topic ‘ClientRect is not defined’ 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/)

 * 2 replies
 * 1 participant
 * Last reply from: [alan1950](https://wordpress.org/support/users/alan1950/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/clientrect-is-not-defined/#post-12191291)
 * Status: not resolved