-
AuthorPosts
-
October 16, 2013 at 12:20 pm #176374
The question was raised already here (https://kriesi.at/support/topic/gravity-forms-not-working-with-layout-editor/) but there was no final answer and it´s closed now. So I´m posting the issue again.
The form appears on the page, once you hit submit the button disappears and nothing happens, no JS error, no PHP error, and if I put the form on a page without the layout editor it works perfectly.
Any solutions? I’m running the last version of GF 1.7.11 and version 2.1 of the enfold theme.
The site is under development and closed to the public but you can use this link: http://www.eoswiss-engineering.ch/test/ and navigate to the “Contact” page from the main menu.
I also figured out that the Gravity Forms “Add Form” button is not visible in the advanced editor. When I add a Text Block this button is missing. Of course I can do a little workaround by switching to the default editor, add the form, copy the form shortcode, go back to advanced editor and paste the shortcode into the text block element.
But it would be much nicer if Enfold would support Gravity Forms right from the advanced editor.
- This topic was modified 11 years, 1 month ago by Michael Oeser.
October 17, 2013 at 9:18 am #176905Hi Michael Oeser!
Please update your theme to v2.3.2. We fixed a js error which could cause issues with tinymce plugins.
Best regards,
PeterOctober 17, 2013 at 10:55 am #176938Hi Dude,
I updated it now but the form still doesn´t work. I´m using a child theme but I assume that´s not the issue.
Just to be clear: The issue is when I click on the submit button the button disappears and nothing else happens. No error, no message, no email is sent, nothing.
Any other idea?
- This reply was modified 11 years, 1 month ago by Michael Oeser.
October 17, 2013 at 10:57 am #176940Hello!
Please create us an admin account and we’ll look into it. Post the login credentials as private reply.
Regards,
PeterOctober 17, 2013 at 11:02 am #176944This reply has been marked as private.October 17, 2013 at 12:47 pm #176964Hi!
The form button does not work because following code in wp-content\plugins\gravityforms\gravityforms.php prevents the html code output
$is_post_edit_page = in_array(RG_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php')); if(!$is_post_edit_page) return;
(part of the add_form_button() function). You can delete this code and the button should pop up. I recommend to contact the plugin authors – maybe they can add a filter to the $is_post_edit_page variable which allows us to bypass the check if the editor displayed within the ajax modal window.
Cheers!
PeterOctober 17, 2013 at 12:53 pm #176965Nope. Doesn´t work. So it seems as if Enfold doesn´t work with Gravity Forms which is a pitty since GF is a very popular form plugin as you know. For the time beeing I need to check something else.
Cheers
Michael- This reply was modified 11 years, 1 month ago by Michael Oeser.
October 17, 2013 at 1:06 pm #176970Hello!
Ok, fair enough. Tbh I don’t think Enfold is incompatible with Gravity Forms just because the “Insert Shortcode” button doesn’t work with the textblock editor (especially because you can use it with the default editor and copy/paste the shortcode) but feel free to use another plugin.
Update: Probably you also need to replace following line in gravityforms.php
if(in_array(RG_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))){ add_action('admin_footer', array('RGForms', 'add_mce_popup')); }
with
if(is_admin()){ add_action('admin_footer', array('RGForms', 'add_mce_popup')); }
otherwise GF will not add the required JS code to the footer.
Regards,
PeterOctober 17, 2013 at 1:14 pm #176976Wow. Open again. I already opened another one ;-)
You got me wrong, Dude. The issue is not just the “insert form” button in the Tiny MCE editor. I can live without that.
It´s the fact that the “Submit” button disappears and the form data are not beeing sent on the page. See what´s happening if you submit the form on http://www.eoswiss-engineering.ch/contact/
I would love to use Gravity Forms because I´m so used to it.
- This reply was modified 11 years, 1 month ago by Michael Oeser.
October 17, 2013 at 3:23 pm #177036By the way: The form works if I use the Gravity Forms preview mode to test the form. So it must be something that happens on the frontend. I also tried to put the form into a new simple post but the result was the same.
October 18, 2013 at 7:02 pm #177535Hi!
Ok, I found the issue. We’ll fix this in the next version but it seems like Gravity Forms and our theme use the same class for the ajax submission. For a quick fix open up enfold/js/shortcode.js and replace:
$('.ajax_form', container).avia_ajax_form();
with
//$('.ajax_form', container).avia_ajax_form();
Note – this change will deactivate our ajax form but the next update will allow you to use both forms together.
Best regards,
Peter -
AuthorPosts
- The topic ‘Gravity Forms are not working with Layout Editor’ is closed to new replies.