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.

Running PHP in Form Confimaton Text to Print Result in PDF

  1. Hi When a user press submit it display information filled by user with the help of CONFIRMATION option of form settings. I am displaying here all submitted fields with default options.

    However what my client wants is to print those forms in PDF. There is a plugin WP Post to PDF which can do this. Plugins documentation says I have to execute following code in order to give option for PDF Conversion

    <?php if (function_exists("wpptopdf_display_icon")) echo wpptopdf_display_icon();?>

    Could someone please guide me how can I execute PHP CODE in confirmation message or is there any other way to achieve PDF Conversion.

    Thanks & Regards
    Vivek Saini

    Posted 13 years ago on Monday March 7, 2011 | Permalink
  2. PHP is not supported in the confirmation text message. But in the development release of 1.5 the confirmation text does support shortcodes so if you read up on how to create a shortcode you could create a shortcode that executes this function call and accomplishes the same thing.

    Posted 13 years ago on Monday March 7, 2011 | Permalink
  3. I too have a client needing PDF outputs - could this be a development item for Gravity Forms - a good supported PDF rendering engine?

    My client needs to have preliminary booking information saved in the form and then for the form to be printed and signed ready to be brought in for a first appointment.

    I'd really prefer to have a native Gravity function rather than having to embed shortcodes...

    Cheers

    Steve

    Posted 13 years ago on Sunday March 20, 2011 | Permalink
  4. PDF is more complicated as it requires server resources. What we may be able to do is integrate with a 3rd party service that does PDF generation. We can look into doing this as an Add-On.

    Posted 13 years ago on Monday March 21, 2011 | Permalink
  5. cazwilson
    Member

    That would be a great add-on. Possibly with the capability of generating PDFs from the Entries list too, allowing for edits to the entries before a final document is produced.

    Posted 13 years ago on Friday March 25, 2011 | Permalink