WordPress.org

Support

Support » Plugins and Hacks » Gravity PDF » [Resolved] Display uploaded images

[Resolved] Display uploaded images

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jake Jackson

    @blue-liquid-designs

    Hi ashbryant,

    If you uncomment the print_r($form_data); line in the template file and then generate the template through the admin area you’ll get the complete array.

    See Creating an Advanced Template under the plugin’s documentation heading:
    http://www.blueliquiddesigns.com.au/gravity-forms-pdf-extended-plugin/#tab-documentation

    I tried that, but that’s not the issue I have. It’s getting the url to the file uploaded not echoing out the link to it.

    However I have come up with a solution, so to anyone else having the same issue this is what you need to do.

    Call the info as you have done before for any other field
    $file = $form_data['field']['Upload file'];

    After add this…

    $file_url = new SimpleXMLElement($file);

    Now echoing like this…

    <?php echo $file_url['href']; ?>

    Will echo out the url to that file, which you can add to a src=”” for images or anything else you may need.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Display uploaded images’ is closed to new replies.
Skip to toolbar