My construction so far worked fine - until I included the confirmation page.
When clicking the "Submit" button, the side doesn't show the "Thanks" message, but goes back to the form (with blank input and ReCaptcha error message). What did I forget to make it work?
[attachment=0]Confirmation page problem.png[/attachment]
Hi Herkle,
I recommend that you don't use the action On Success events unless you are forced to (because not all of them work and because the nesting gets hard to understand). Instead put the OnSuccess actions in sequence in the main On Submit box. The result is the same; if the action does't fail then control passed to the next action in the main event.
Unfortunately you can't re-position the actions by dragging and dropping but you can copy and paste the settings over using two browser windows.
Bob
I cleaned up all the nested mess as you have recommended - yet the original problem remains:
Clicking the button "submit" on confirmation page redirects to blank form with error message "The reCAPTCHA wasn't entered correctly. Please try it again."
[attachment=0]Confirmation-page-problem.png[/attachment]
Hi Herkel,
Hmmm, ReCaptcha is usually pretty reliable. Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.
Bob
Hi HerKle,
There are no problems here with the ReCaptcha. Is the site connected to the Internet?
Oops - ignore that, I answered too quickly.
Bob
It's a local test environment.
But ReCaptcha is only on the form page installed - not on the confirmation page. So the step from confirmation to thanks message page should run without any ReCaptcha at all, shouldn't it?
And the first step from form to confirmation (where I expect it) ReCaptcha works fine, even locally.
It's the second step from confirmation to thanks message, which doesn't work.
Hm. What I understood of your last reply looks now like this (including the code you gave me):
[attachment=0]Confirmation-page-problem.png[/attachment]
But this is now even worse. After entering the captcha on the form, both the confirmation AND the form open on one page. After confirming now the thanks message appears (yoohoo!), but the data are gone (there are the field names shown in curled brackets).
Could you make a screenshot of the events' construction so that I can follow more correctly? Thanks for your patience.
Hi Herkle,
That looks OK but move the Event Switcher up before the Confirmation Page action.
The missing Data may be from the Data to Session in the On Show event - at a guess that's wiping out the previously saved data, you prbably don't need it.
Bob
There is a certain progress...
The steps are following now the right order.
But still the thanks message page shows curled brackets.
My code in Custom Server Side Validation checks and changes some data. Shouldn't they somehow get into the session data before the (db recording and) thanks message procedure occur?
Hi HerKle,
Sure - it needs to be set to Merge data to make sure that the existing data is carried through. Adding Debugger actions temporarily may make it clearer what data is available where.
Bob
I got it solved. In case, others face the same problem, here is my construction, which works fine.
[attachment=0]Confirmation-page-problem-solved.png[/attachment]
Thanks for your help!
Hi HerKle,
Great to see that you got this working.
I think I got this bit wrong earlier but for other readers here's the correct version:
The 'Data to Session' action has a 'Merge data' setting. If this is set to Yes then the data saved to the Session is merged with any existing Session data with the new data taking priority; if it is set to No then any existing data is deleted and the only the new data is saved.
The 'Session to Data' action has a 'Clear after' option. If this is set to Yes then the data is cleared from the session when the action runs; if it's set to No then the data is preserved in the session.
Bob