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.

Signature field not showing when used in template

  1. I have the signature plugin working fine when I use the shortcode generator within a post, however I''d like to add it to my template so it appears consistently, and also if we decide to change the form ID at a later date.

    I've tried using the function call from this page
    http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    I've also tried using the do_shortcode() function and in both cases all form fields appear but there's no signature area.

    I've tried using the gravity_form_enqueue_scripts both just ahead of these functions, and in the header, and done all this on a clean twenty ten theme with all other plugins deactivated

    Posted 5 years ago on Monday December 17, 2012 | Permalink
  2. Can you link to your form please?

    Also, how are you adding this to the template? Please show all relevant code. Thank you.

    Posted 5 years ago on Monday December 17, 2012 | Permalink
  3. post with the form in is here:
    http://visiblybetter.net/proposal/demo/

    I'm using the genesis framework and this is the code for the custom template:
    http://pastie.org/5545231

    I have tried removing every plugin but this one.

    It works fine when added to a regular post, but in an advanced custom field WYSIWYG or when added via the template, no joy.

    Oddly, if you hit submit, the signature area appears correctly in the validation error (it is a required field)

    Posted 5 years ago on Monday December 17, 2012 | Permalink
  4. I get a JavaScript error on that page:

    Timestamp: 12/17/12 11:08:15 PM
    Error: ReferenceError: SuperSignature is not defined
    Source File: http://visiblybetter.net/proposal/demo/
    Line: 88

    That is why the signature field is not showing up. When you embed a form in a template with the function call (you're using do_shortcode, which will in turn call the function) you need to enqueue the Gravity Forms scripts. It works when embedded in a regular post because Gravity Forms is doing to required work to embed the scripts. When you use the function call, you have to enqueue the scripts yourself.

    You said you used gravity_form_enqueue_scripts, and that is what is required. Can you show us how you added that code and provide a link to a page where you are embedding the form via the function call, and also enqueuing the scripts with gravity_form_enqueue_scripts? Maybe it was just not called at the right time or something, when you did use it.

    Posted 5 years ago on Tuesday December 18, 2012 | Permalink
  5. OK, sorted it, I'd somehow dropped the enqueue function when I moved to a new template.

    for reference for anyone else looking at this, this is how I added the enqueue to the right place in the head using a custom genesis template:

    http://pastie.org/5547049

    Posted 5 years ago on Tuesday December 18, 2012 | Permalink
  6. David Peralty
    Administrator

    Thanks for posting your solution. I am sure it will come in handy for others.

    Posted 5 years ago on Tuesday December 18, 2012 | Permalink

This topic has been resolved and has been closed to new replies.

Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only