Support

Account

Home Forums Front-end Issues Gravity Form AJAX message being escaped when using WYSIWYG issue.

Solving

Gravity Form AJAX message being escaped when using WYSIWYG issue.

  • Hey, I am using gravity forms in combination with ACF pro – both are up to date and the most recent version.

    When an AJAX gravity form is sent, the AJAX response message is getting escaped and HTML is being printed out as text on the screen instead of read as HTML.

    dasd

    You can replicate this by going to http://touchstream.media/olympics/ and filling out the form.

    The gravity form shortcode is being dropped into a WYSIWYG Editor, which is part of a Flexible Content Layout.

    Just wondering if anyone has run into the same issue?

  • Hi @mayte

    I don’t have Gravity form, so I can’t test it myself. Please forgive me if I can’t help you much.

    Could you please check if it happens if you use it without the WYSIWYG field? Maybe Gravity form needs to add additional scripts or execute something that’s not executed by ACF’s WYSIWYG field. Here are the filters used by the WYSIWYG field:

    add_filter( 'acf_the_content', 'capital_P_dangit', 11 );
    add_filter( 'acf_the_content', 'wptexturize' );
    add_filter( 'acf_the_content', 'convert_smilies' );
    add_filter( 'acf_the_content', 'convert_chars' ); // not found in WP 4.4
    add_filter( 'acf_the_content', 'wpautop' );
    add_filter( 'acf_the_content', 'shortcode_unautop' );
    add_filter( 'acf_the_content', 'do_shortcode', 11);

    Could you please ask the Gravity form’s support regarding this issue?

    Thanks 🙂

  • Hey James,

    Sure thing, that was my next step. I have a feeling they will handball it back to ACF support though haha.

    Standby.

    Cheers

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.