• Hi,

    It’s impossible to submit the Gravity form attached to a job.
    Here is the part of the script, buggy :

    
    var is_redirect = contents.indexOf('gformRedirect(){') >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;if(is_form){jQuery('#gform_wrapper_3').html(form_content.html());if(form_content.hasClass('gform_validation_error')){jQuery('#gform_wrapper_3').addClass('gform_validation_error');} else {jQuery('#gform_wrapper_3').removeClass('gform_validation_error');}	
    

    you can notice the && ! added by, maybe, Contact Listing for WP Job Manager.

    Here is the original script:
    https://github.com/wp-premium/gravityforms/blob/master/form_display.php#L1052

    Why the plugin interpret this source code?
    Any idea? Thank you for your help.

    WP 4.9.5
    Gravity Forms 2.2.5
    Contact Listing for WP Job Manager 1.4.0
    WP Job Manager 1.30.2

    • This topic was modified 6 years, 7 months ago by Redpik.
Viewing 1 replies (of 1 total)
  • Thread Starter Redpik

    (@redpik)

    FYI here is my dirty dirty patch, in single template :

    
    <?php
    $contenu = apply_filters('the_content', get_the_content());
    $contenu = str_replace(' &&&nbsp;! ', ' && ! ', $contenu);
    echo $contenu;
    ?>
    
Viewing 1 replies (of 1 total)
  • The topic ‘Javascript error in Gravity Forms script’ is closed to new replies.