This topic is locked
[SOLVED]

Switch from Edit Page to View Page Programattically

3/22/2022 4:34:46 PM
PHPRunner General questions
R
RBrogen author

Hi Everyone,

I have a need to switch from the Edit Page to the View Page programattially. Here's my scenario:

I send a link to a client to digitally sign an Agreement form which is a Edit page. Once they sign and date it, they click a button that says Save Signed Agrement and that is supposed to save the page and email the PDF version of that document to them. The problem is that currently when I create the pdf using Ajax.addPDF, the resulting file is the List Page and not the document itself. I believe (thought I could easily be wrong) that the Ajax.addPDF feature will only work properly with the VIEW or LIST pages so I need to swtich from the Edit Page to the View page so I can then programmatically generate the PDF and email it to them. I know you can add a standard View button to the edit and click it to switch to the View page but I want to do that in the custom button so when the client clicks the Save Signed Agreement button, it saves the document, switches to the View page, generates and emails the PDF to them.

Any guidance would be greatly appreciated.

Thanks,
Randy