I have set up a simple form to test the File Downloader. I have got the form working to where it processes the form, sends the email and even automatically downloads the file for the user upon submission. However the form does not seem to go through the motions of the thank you message.
Once the form processes the submit requests, it remains in tact, meaning it is still filled out in front of the user and does not continue on to the thank you message.
I tried re-ordering the OnSubmit actions but it doesn't seem to make a difference.
In one try, I added the debugger but it also did not show up. Unless I took out the File Downloader action.
Anyone have a similar experience and / or solution?
Hi jjspelman,
This is an expected behavior, you should add the file downloader to a new event and ask the user to click a link to it, or maybe use the meta tag which redirects the users after say x seconds in the on submit event, so once it tries to redirect the user, the download dialogue will appear, just like every where on the internet.
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi jjspelman,
It looks as though you fixed the background image problem - adding &tmpl=component to the link URL will do this.
If you create a new event called, for example, my_event then you can add &event=my_event to the form URL and ChronoForms will execute whatever code is in that event.
Bob
Actually the background image is still there at the bottom of the window - that and and the CSS for .rt-container is forcing scroll bars.
I will try and sort out what you mean by adding the action to the url a little later today, need some sleep. But thanks for checking in!
Hi jjspelman,
I think Max was suggesting that you use the new event by redirecting the user to it *after* the On Submit event - either by getting them to click a link or by using a timed refresh redirection.
Bob
I don't know how to do this. Can you please tell me how??
Hi JJ,
Just tidying up here. The file downloader action doesn't seem to allow for dynamic file names so we built a simple download link using info from the page URL.
Bob
Hi,
I'm completely new to CF so forgive me if there is an answer to my question alsewhere. I tried to find it but I quit😟
My problem is similar. I created a simple form and wanted a file to be downloaded at the end. I followed that detailed receipe in FAQ section but to noavail. Download starts but Thank You message won't appear. When I corrupt File Downloader settings (file won't download) then Thank You message shows up. It shows up also when I put Show Stopper immidiately after Show Html (file won't download ofcourse).
It looks like File Downloader is faster then Show Html and takes over the browser before it is able to display new content even though there is On Download (where File Downloader resides) set as Submission Event.
What is wrong?
PS
I am not very familiar with PHP so I would prefer to avoid coding and using some actions elements if possible.
Hi atomik,
Yes that's more or less correct, the file download takes over control from ChronoForms so it has to be the last action. If you want both then add a link to the file on the Thank You page.
Bob
Nope Bob.. it doesn't work..😟
I tried Show Html after.. then before email forms and it doesn't work. Hmm.. it works but only downloading file, no trace of Thank You message.🙄
Thank you message shows up only when I corrupt File Downloader settings causing it not to download file.. but it is not what I want to get🤔
Maybe my layout is wrong? See attached Actions screen.
Hi atomik,
I'm not sure what you are trying to do here. It seems to me that you have just tried to move the same actions into another event? I don't see how that will help.
In the On Submit event remove the Event Loop from the On Success event; add the Email actions after the Check ReCaptcha action; add a Thank You page action after the Email action and put a link to the file in that. Remove all the actions from the On On Thanks event.
Bob
Hi again,
I managed to get it working finaly. It is not the way I wanted exactly but it fits all my goals.
What I need is:
[list]
collect some customer data (name, email etc.)
get him a file sent without showing download path (to avoid hotlinking)
have an email sent to me with customer data, ONLY when a file IS downloaded
have an email sent to customer with a reminder ONLY when a file IS downloaded[/list]
With above assumptions you cannot use link to download inside Thank You message for obvious reasons - it shows download path and you are not sure file is realy downloaded because it requires another user click to download it.
My solution is like this:
[list]
I created 2 forms
first one collects data and takes care of anti-spam (reCaptcha)
another one shows Thanks/Download message and sends a file (the only action is Submit button)[/list]
I need to use data collected by first form to send emails by second one so I use session data to pass it over and hidden form fields in second form to restore data from the first one.
It works pretty good form me at the moment. Tell me what you think about it? Is there any security hole inside? I mean can one use second form to download file without filling the first one out?
Attached you can see both forms actions layout.
Hi atomik,
That sounds OK.
You could add validation in the On Load event of the second form to check that the first one has been completed. A check for the submitted data is probably enough.
Bob
Hi all,
my goal is exactly the same as atomik, infact I've reached this thread while I was searching in google.
I followed the pattern of you last post, atomik, but when I click on the second form's submit, I just am redirected to the first form, and nothing happens..
Do you have an idea of what I might have wrong?
Thanks a lot..
Really nobody can help me?
Thanks
Hi lukkio84,
If you post a specific question and show us what you have done and which bit doesn't work then you'll probably get some help. If you just say 'my form is broken' there isn't much to help with.
Bob
Hi,
I'll try to explain better.
I have the same goals of atomik, so I tried creating the same situation of atomik:
- 2 forms
- first one gather user info (name, email, etc.) and pass these data to the second form (by "Data To Session" event)
- second one has one submit button, whith these actions: get data from first form (by "Session To Data" event), send 2 emails (1 to admin, 1 to user) , launch the File Downloader whith an absolute path (to be sure I've checked it before insert).
When I test this situation, I fill first form, than I'm correctly redirected to second form.
My problem is that, when I click on the Submit of the second form, the first form is reloaded in the same page and nothing else happens: file download doesn't start neither email are not sent, and there is no error message.
What could be the problem?
Thank you.
Hi lukkio84,
How do you have these forms set up? I can't think of any reason why submitting the second form would re-load the first unless you have built the forms to do that.
Bob
Hi,
I created the 2 forms (as I've described in last post), then I created a K2 article and a menu item pointing to that, then I created a new Chronoforms module containing the first form and I've set the module visible in this menu item.
Now, when I'm going to test: I load the page with the first form and all seems ok.
After that, when I get to click on first submit (obviously after validating ReCaptcha) the second form is correctly loaded (url become "SITENAME/MENUITEMNAME?chronoform=FIRST_FORM_NAME&event=submit" ).
THE ISSUE: at this point, then when I click on the second form submit (url become "SITENAME/MENUITEMNAME?chronoform=SECOND_FORM_NAME&event=submit" ) the page is reloaded, the first form is shown in his module position and nothing happens, thanks message is not shown and email is not sent.
At the moment, I've disabled in the second form the actions "Session To Data" and "File Downloader" to see if that was the problem, but nothing changed. I created an Email[GH] action in the first form to see if the problem is the email configuration, but this email from the first form is correctly sent and the email from the second form is not sent.
Some more specifications of my current configuration:
1) in the first form action "Show form" I have 2 options - "Load form" OR "Redirect to Form" - and I choose "Load Form".
2) Actions of first form are: OnLoad { Load ReCaptcha; Show html }, OnSubmit { CheckReCaptcha[ OnFail( Event Loop ) ]; Email[GH]; Data to Session; Show Form }
3) Actions of second form are: OnLoad { Show html }, OnSubmit { Email[GH] ; Show Thanks Message }.
Can you help me to find what I did wrong?
Thanks
Someone has an idea of what can be the problem?
Thanks in advance
I'm using Gantry quick start with RocketTheme, may this be the problem?
I'm now testing with fresh install of last version RocketTheme and last version Chronoforms component: forms are not showing in front-end. I cannot display any Chronoforms instance in any page: page containing Chronoforms module are blank, in Firefox, in IE and in Chrome; only in IE if i refresh browser page I get 500 Internal server error, in other browsers page remains blank.
Please let me have some info, due to this problem I can't use Chronoforms now. Thanks.