Title: numeric-fix.js dependency error
Last modified: August 20, 2017

---

# numeric-fix.js dependency error

 *  Resolved [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/numeric-fix-js-dependency-error/)
 * Hi,
 * I noticed there is a problem with dependencies of the JavaScript numeric-fix.
   js : it does not only depend from jQuery, but also from jQuery.validate.
 * If this script is loaded before the validation script (which was the case on 
   my installation, I don’t know why), an error occurs and breaks the whole JS loading
   as it’s not encapsulated.
 * To fix it, just edit line 85 of file `types/library/toolset/types/embedded/includes/
   fields/numeric.php` with :
 *     ```
       wp_enqueue_script( 'wpcf-numeric',
                       WPCF_EMBEDDED_RES_RELPATH
                       . '/js/numeric_fix.js', array('wptoolset-form-jquery-validation'), WPCF_VERSION );
       ```
   
 * Thanks for this plugin really useful, and by advance for the global fix 🙂

Viewing 1 replies (of 1 total)

 *  Plugin Author [Christian](https://wordpress.org/support/users/christianglingener/)
 * (@christianglingener)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/numeric-fix-js-dependency-error/#post-9429843)
 * Hi piwel,
 * nice catch, we will include your fix in the upcoming release.
 * Thank you,
    Christian

Viewing 1 replies (of 1 total)

The topic ‘numeric-fix.js dependency error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Christian](https://wordpress.org/support/users/christianglingener/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/numeric-fix-js-dependency-error/#post-9429843)
 * Status: resolved