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.

gform_after_submission

  1. I suspect this might be fairly straightforward, and I am not seeing it because I have been looking at it too long.

    Anyway, I created an account at pdfcrowd, use the gform_after_submission function to populate an html page underneath which is then turned into a PDF and downloaded to the browser in a new instance. That part works great.

    The part the does not, is after the PDF is created, when I go back to the final page of the form, it still appears to be "working".

    http://pastie.org/4599266

    In the above code, I thought line 31/32 would send the form back to the home page, for example. I have also put lines 31/32 @ line 23.

    Thanks

    Posted 11 years ago on Monday August 27, 2012 | Permalink
  2. Is line 22 for debug? If not, where would that $pdf be echo'd? I don't think you can do that.

    Lines 31 and 32 look fine. I'm not familiar with pdfcrowd, so I can't verify the rest.

    Posted 11 years ago on Tuesday August 28, 2012 | Permalink
  3. the "echo" causes the PDF to be dumped to the browser in a stream, so it does not reside on the server.

    Posted 11 years ago on Wednesday August 29, 2012 | Permalink
  4. If you remove that echo, does this function work and not 'hang'?

    Posted 11 years ago on Wednesday August 29, 2012 | Permalink