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.

Need Code vs. Short-Code

  1. Altstatten
    Member

    I'm using a theme that requires the actual form code. The short-code won't work. (It's for a squeeze page and the theme has its' own little data-field for the form code entry, and the GF short-code won't work.

    I've tried the "View Source" on a successful presentation page of the form I need, copy/paste but I don't know enough about php/html to know how much of it I need and what I dont'.

    How can I get the code for a GF form?

    Posted 8 years ago on Wednesday November 16, 2011 | Permalink
  2. Forms can be displayed using either the shortcode or a function call. You can't view source and copy-n-paste the form code. That isn't going to work.

    If you need to insert the form into the theme template files directly you would use the function call to display the form.

    Information on this can be found in documentation here:

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    When using the function call you also have to use a second function call in your themes functions.php file to enqueue the necessary scripts and CSS. That function call is documented here:

    http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts

    Posted 8 years ago on Wednesday November 16, 2011 | Permalink