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.

Embedding a form using php function

  1. I created a form. ID=10 and using the following code to embed it into the sidebar manually.

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

    The form has Name (Single text field), Email (advanced field), Paragraph Text, Captcha fields.

    However when the form is displayed, I see 5th field. Upon refreshing the page, this 5th field shows either as Comments, or Phone field or email field. Using Firebug console, i get the following error:

    jQuery("#input_10_3").textareaCount is not a function

    Any help on how to fix this?

    Posted 12 years ago on Saturday October 15, 2011 | Permalink
  2. You have several issues going on here. Can you please tell us what version of Gravity Forms we're talking about?

    Posted 12 years ago on Saturday October 15, 2011 | Permalink
  3. Mostly though, it seems like a JavaScript error caused by a plugin or theme conflict. You can start troubleshooting by looking for plugin or theme conflicts using these instructions:

    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    The comments. phone and email fields you're seeing are honeypot fields. If you uncheck the option to use the anti-spam honeypot, those errors will go away. That will only mask the problem though: you need to find the source of your JavaScript error. If you can post a link to your form, we can take a look.

    Posted 12 years ago on Saturday October 15, 2011 | Permalink