redirect page after pdf pop up

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

edwinayin@qq.com
Ebase User
Posts: 24
Joined: Fri Nov 04, 2016 7:41 pm

redirect page after pdf pop up

#1

Postby edwinayin@qq.com » Thu Apr 06, 2017 6:22 pm

Hello everyone,

I have a submit button on a form, and if users click on it, the form will call a script to generate pdf and display the pdf as a popup to the user.

But I want the original page (the form with submit button) redirect to another page after the pop-up gets displayed or after users close the popup window.

I have tried adding

Code: Select all

form.gotoForm('RedirectPage');
after

Code: Select all

form.generatePdf(opts);
The page will just go to the redirect page without pop up the PDF to display.

I have also tried adding JQuery to my submit button. It is still not working.

Please advise..

regards,
Edwina
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#2

Postby Segi » Fri Apr 07, 2017 11:23 pm

Edwina,

Use HTML Entities to make a call to a client callable function to display the PDF.

The server side script for the click event of the submit button can then call form.gotoForm('RedirectPage'); and it should work.
0 x

Halli
Ebase User
Posts: 1
Joined: Tue Apr 11, 2017 6:30 pm

#3

Postby Halli » Fri Apr 14, 2017 5:56 am

Segi wrote:Edwina,

Use HTML Entities to make a call to a client callable function to display the PDF.

The server side script for the click event of the submit button can then call form.gotoForm('RedirectPage'); and it should work.
Good advice Segi, that works for me.
0 x


Who is online

Users browsing this forum: No registered users and 110 guests