Highlighted

Refreshing a form page after opening CFDOCUMENT PDF in new window.

New Here ,
Aug 19, 2015

Copy link to clipboard

Copied

Hi guys, I have a form page/processing page that takes data from a form and then inserts into a database/prints to a PDF via CFDOCUMENT with this on a submit button:

<cfinput type="submit" name="submit" value="PRINT" formtarget="_blank" onclick="submitFormOkay = true;">

It opens the generated PDF properly into the new  tab as expected.

My problem is, I can't seem to automatically reload the original tab/page...which has code on it that clears the session variables the form and gets it ready for the next entry.

How can I launch this CFDOCUMENT in a new tab, and also refresh the original tab simultaneously?

One note: The form page and processing page are the same, separated by IF/THEN's for program flow.

Thanks in advance!

T

Views

194

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Refreshing a form page after opening CFDOCUMENT PDF in new window.

New Here ,
Aug 19, 2015

Copy link to clipboard

Copied

Hi guys, I have a form page/processing page that takes data from a form and then inserts into a database/prints to a PDF via CFDOCUMENT with this on a submit button:

<cfinput type="submit" name="submit" value="PRINT" formtarget="_blank" onclick="submitFormOkay = true;">

It opens the generated PDF properly into the new  tab as expected.

My problem is, I can't seem to automatically reload the original tab/page...which has code on it that clears the session variables the form and gets it ready for the next entry.

How can I launch this CFDOCUMENT in a new tab, and also refresh the original tab simultaneously?

One note: The form page and processing page are the same, separated by IF/THEN's for program flow.

Thanks in advance!

T

Views

195

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 19, 2015 0

Have something to add?

Join the conversation