PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Admin Fields showing up where they shouldn't

  1. Ladies and gentlemen,

    I have a, what I think, strange problem which is as follows:

    I create a nice form using Gravity Forms, so far so good, but when I try to embed it on a page, something seems to go wrong. I see my form with some admin fields around it and I'm inable to fill in any of the fields.

    I tried embedding the forms with:

    http://pastebin.com/aYW954U0

    It doesn't matter which one I try, they all end up with the same form. I really have no idea what is causing this, but I hope some one here has.

    I'm using WordPress 3.3.2 and Gravity Forms 1.6.4.2(.1)

    Thanks,

    Mark

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  2. David Peralty

    Can you just do the php call to display your Gravity Forms form and see if that helps?

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  3. You mean the gravity_form() one?

    <?php
    gravity_form(1, false, false, false, '', true);
    ?>

    Like that?

    Because I tried them all independently from each other. They all gave the same result.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  4. David Peralty

    When you preview a form, does the same issue occur?

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  5. Nope. When I preview the form, it shows up correctly.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  6. David Peralty

    Can I have you create a different form and embed it into a page using the normal shortcode method in a page? Through the WordPress editor and see if that works fine as well.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  7. Sure, I'll try that again. I'll post the result here in a second.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  8. David Peralty

    Sorry to get you to run around, but I'm trying to figure out the exact cause. Usually if a form works fine in the preview tool, it is a Theme or Plugin conflict - http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    But I want to learn more about the cause before I have you do the theme/plugin conflict test.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  9. Alass, this results in the same.

    I used the_content(); in the template and I created the form as it's supposed to, and put the shortcode in wordpress editor.

    I can send you a screenshot if you like, of how it looks.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  10. It's ok. I understand where you come from. To be honest, I'm beginning to think of a theme conflict too.

    The plugins I use are:

    - Gravity Forms
    - Pronamic's iDeal plugin for Gravity Forms
    - Trendwerk's Multiple Content Blocks

    And they've all worked fine before.

    It's some one else 's theme I'm working with now and he fiddled a lot with jQuery and JavaScript... but there's little chance of asking him for help and I'm totally in the dark on where this goes wrong.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  11. David Peralty

    Can you link me the site, or if you don't want it public, can you e-mail me the details? peralty@rocketgenius.com

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  12. The site is not public. It's running on my localhost. Give me a few minutes and I'll publish it and send you the details.

    Thanks for the help so far.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  13. I've sent you an e-mail with the details.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  14. David Peralty

    Yup, but you didn't include the URL, you sent me back my e-mail address ;)

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  15. Lol, ok. I sent you the correct info now.

    Posted 12 years ago on Thursday May 10, 2012 | Permalink
  16. Well, there's a new development. I spoke to the theme's developer and he says it might be a small bug in Gravity Forms.

    An Ajax Call (which he uses to get the pages) makes is_admin() return TRUE, even though that is not correct. It also makes Gravity think I'm on an admin page and includes the admin version of the form. Is there any way around this, any way I can work around this?

    Posted 12 years ago on Tuesday May 15, 2012 | Permalink
  17. Thanks a lot to David and Alex for helping me solve this. :-)

    Posted 12 years ago on Friday May 18, 2012 | Permalink
  18. p.s. if you want me to. I can post the solution here. But involves doing stuff in the core files. So I'm not sure if you are comfortable with that.

    Posted 12 years ago on Friday May 18, 2012 | Permalink
  19. David Peralty

    Probably should take this as a case by case thing, and not post core edits publicly. :)

    Posted 12 years ago on Friday May 18, 2012 | Permalink
  20. I am having the same problem trying to pull in a contact form via AJAX and displaying it in Modal box.

    The method used is "echo do_shortcode(BLAH BLAH ETC);"

    What was the fix in the end?

    Matthew.

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  21. David Peralty

    Patrik, can you please try testing the following: http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Also, I'm pretty sure the specific issue in this thread has been patched in the latest Gravity Forms version.

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  22. It's a custom theme build so I would have to build the same AJAX modal functionality in 2010 / 2011 to test if it is a theme conflict.

    Could it be to do with the if( is_admin ) in the following:

    `if( is_admin() )
    add_action( 'wp_ajax_contact_popup', array( &$this, 'contact_popup' ) );
    add_action( 'wp_ajax_nopriv_contact_popup', array( &$this, 'contact_popup' ) );`

    I have commented that line out and it killed the return content from the AJAX request.

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  23. David Peralty can I send you a link to the dev site so you can see what is been pulled through?

    The gravity forms plugin is on the latest version as a developer license was bought this morning.

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  24. David Peralty

    Sure peralty@rocketgenius.com. Please reference this forum thread, and let me know exactly what you are hoping to see.

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  25. I'm doing an AJAX call which among other things returns the markup for a form. I too am having admin fields display instead of the form (both when using the [gravityform] shortcode as well as gravity_form() function). The same form displays properly if it is put in a template page.

    Posted 12 years ago on Wednesday August 15, 2012 | Permalink