button click to open a new form in a new window.

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

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

button click to open a new form in a new window.

#1

Postby xren » Thu Aug 06, 2015 5:53 pm

Hi,

I would like to have a button on a page, by clicking it, open a form in a new window.

I did not find how to do it yet.

Can you help?

Thanks,
Xiaoli
0 x

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

#2

Postby Segi » Thu Aug 06, 2015 8:54 pm

I have done the same thing as what you want to do.

Once you add the button to your form, right click on it and choose HTML element properties or press Ctrl H when it is selected.

Enter an ID or class. You don't need to enter both, just one or the other.

Under jQuery select click from the event dropdown and enter this code by clicking on the button with 3 dots to the right and paste this code (this code will open the popup window in full screen):

var mywindow=window.open('ufsmain?formid=MYFORMNAME','_blank','fullscreen=yes');

mywindow.resizeTo(screen.availWidth, screen.availHeight);

make sure to replace MYFORM with the name of the form that you want to open. Also keep in mind that if you or your users are using Google Chrome, you need to allow pop-ups in the settings or Chrome will block the pop-up window by default.
0 x


Who is online

Users browsing this forum: No registered users and 26 guests