Title: Main.js not loading
Last modified: May 4, 2017

---

# Main.js not loading

 *  Resolved [carolyndaniel99](https://wordpress.org/support/users/carolyndaniel99/)
 * (@carolyndaniel99)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/main-js-not-loading/)
 * I am using Form Maker 1.8.30 with WordPress 4.4.1 and
    forms are failing on submit
   because the javascript function check_required is not defined. It appears that
   main.js is not being loaded at all either (not a 404 on the URL, there’s no attempt
   made to load it). I’ve deactivated/activated the plugin and upgraded from two
   previous versions. The Plugin File Editor shows main.js (among other files) as‘
   Inactive’.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Form Maker Support](https://wordpress.org/support/users/formmakersupport/)
 * (@formmakersupport)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/main-js-not-loading/#post-9103370)
 * Hello [@carolyndaniel99](https://wordpress.org/support/users/carolyndaniel99/)!
 * We are very sorry for the inconvenience.
 * This problem was a bug in older versions of Form Maker. So please try to update
   your plugin first.
 * To solve this issue manually, please check in browser developer tools if you 
   get the following error when hitting Submit or Reset buttons:
 * `Uncaught ReferenceError: check_requiredX is not defined.`
 * Where **X** should be a number, your form ID. If this error is present, here’s
   how you should solve the problem. Open **/form-maker/form-maker.php** file and
   find the following two code snippets:
 *     ```
       /*    $new_shortcode = '[Form';
       foreach ($attrs as $key=>$value) {
       	$new_shortcode .= ' ' . $key . '="' . $value . '"';
       }
       $new_shortcode .= ']'; 
       return $new_shortcode; */
       ```
   
 * and
    `//add_filter('the_content', 'Form_maker_fornt_end_main', 5000);`
 * If you uncomment them (remove /* */ and //), the problem will be solved.
 * Please be careful not to leave any unexpected characters, since that will make
   the plugin to throw PHP errors and it will not function properly until they are
   removed.
 * Thanks! Have a wonderful weekend!

Viewing 1 replies (of 1 total)

The topic ‘Main.js not loading’ is closed to new replies.

 * ![](https://ps.w.org/form-maker/assets/icon-256x256.png?rev=2068681)
 * [Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder](https://wordpress.org/plugins/form-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/form-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/form-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/form-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/form-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/form-maker/reviews/)

## Tags

 * [submit button](https://wordpress.org/support/topic-tag/submit-button/)

 * 1 reply
 * 2 participants
 * Last reply from: [Form Maker Support](https://wordpress.org/support/users/formmakersupport/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/main-js-not-loading/#post-9103370)
 * Status: resolved