WordPress.org

Forums

Gravity PDF
How does it work with the signature addon? (4 posts)

  1. jukjuv
    Member
    Posted 2 years ago #

    How this does it work with the signature addon?

    Would it be possible to get a clear and rigorous instruction, and how to have that signature. PDF.

    http://wordpress.org/extend/plugins/gravity-forms-pdf-extended/

  2. Blue Liquid Designs
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    When creating a custom PDF template you can access all the form data through the $form_data array, including the signature image that gets saved using the GF Signature Add On. Review the documentation on accessing the form data in a custom template.

    The first signature can be accessed using $form_data['signature'][0] and can be printed to the PDF by using echo in a custom template:

    echo $form_data['signature'][0];

    I hope this helps.

  3. jukjuv
    Member
    Posted 2 years ago #

    Thanx,

    I try this code example-teplate (first : print_r($form_data); exit(); and then //print_r($form_data); exit(); ) :

    /** Uncomment the following line when figuring out how to access the $form_data array */
    //print_r($form_data); exit();

    /* get all the form values */
    $date_created = $form_data['date_created'];

    $first_name = $form_data['1.Name']['first'];
    $last_name = $form_data['1.Name']['last'];

    $address_street = $form_data['2.Address']['street'];
    $address_city = $form_data['2.Address']['city'];
    $address_state = $form_data['2.Address']['state'];
    $address_zip = $form_data['2.Address']['zip'];
    $address_country = $form_data['2.Address']['country'];

    $phone = $form_data['3.Puhelinnumero'];
    $signature = $form_data['4.Allekirjoitus'];
    $signature = $form_data['signature']['4'];
    $signature = $form_data['signature']['0'];

    /* format the template */
    ?>

    and template down :

    <p class="signature">
    Jake Jackson
    <?php echo $signature; ?>
    <?php echo $form_data['signature'][0]; ?>

    Developer, Gravity Forms PDF Extended
    http://www.gravityformspdfextended.com
    </p>

    But nothing signature with PDF ?? What is wrong? Sorry my bad english ;)

  4. jukjuv
    Member
    Posted 2 years ago #

    I can able to do all of the other fields except signature my custom .PDF template. Signature'll be a link to e-mail, but it does not appear as an image with .PDF document.

    i do not know what i code wrong :( .

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.