• Resolved carolyndaniel99

    (@carolyndaniel99)


    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

    (@formmakersupport)

    Hello @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.