One Button for two actions?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
ofCross
 
 
Posts: 4
Joined: Fri Apr 09, 2021 8:55 pm

One Button for two actions?

Post by ofCross »

Hi, I hope everyone are doing well.

I need to have a button that once clicked it should open/give a link and send a form. Is this possible? or a workaround?
I have been trying different combination with events, timers, etc but nothing.


I've been looking for a solution all over the forum but couldn't find it.
The only information close to the issue is this:

viewtopic.php?f=10&t=37833

I tried but not work in my tests [surely I do not understand how to]

For all your help, Thankyou!

Be safe out there.
User avatar
miguelss
 
 
Posts: 135
Joined: Thu Aug 15, 2013 12:25 pm
Location: Madrid, Spain

Re: One Button for two actions?

Post by miguelss »

Hi,

Maybe is more easy to setup the form that you want to fill and when the user click on “send” button, you will receive the form and you can put the url that you need to show as as a success page.

Cheers.
M.
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: One Button for two actions?

Post by Pablo »

I think the order of the events is important.
For example, if you trigger a link then the browser will go to another page immediately so all events after that will be ignored.

But can't you just use the 'Success page' option of the form instead?
ofCross
 
 
Posts: 4
Joined: Fri Apr 09, 2021 8:55 pm

Re: One Button for two actions?

Post by ofCross »

Hi, thanks for the quick response.

About put the link in the Success Page, it is a good idea if there is only one link but in my case the site will have several links [when I say link, I mean start a download of a file]; let me explain:

Basically, this is a "download area" page, so it will have around 20 buttons. The user will need to login first And all I need is a Report so I can now who, when and what they downloaded. At the moment once a button is clicked it informs me [via de form] who, when[because the date of the email sent to me] and what button is clicked but it doesn't give the link to download the file, or some times [trying different settings] it starts the download but no Form is sent.

And that's why I need a button to do two actions... the only idea I came up to get the "reports"
I don't know if there is a better way in WYSIWYG to get this kind of reports? if so, please let me know.

Thanks!
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: One Button for two actions?

Post by Pablo »

You can submit the form via an event (form submit) and then do a redirect.
Or else write a custom script that performs both actions in a JavaScript function.

Note that these type of 'web applications' usually require programing. Because this is not a common feature.
Post Reply