I'm using a Chronoform on my product pages.
I've placed it inside a Tab (Regular Labs) to keep a clean page.
When submitting the thank you message (or error) gets shown on the tab, but the tab is not selected (it looks like the page gets refreshed).. Not a real problem as long as the form is filled in correctly.... when an error appears people won't see it....
How can I set this to display the message in the TAB directly after submitting? I've tried a (simple) redirect... with the tabs anchortext but that doesn't seem to work.
THNX
Almost forgot: here is a URL with the form http://clownzassie.nl/combinatiepakketten-voordeelpakketten/combinatie-ballonartiest-suikerspinmachine-schminkstand#plaats-een-optie
Hi zassie,
I think there are two ways to do this.
+ Add some JavaScript and/or CSS to the On Load event to select the tab. You'll need to make this conditional as you only want it to run if there is a re-load.
+ Use the Ajax submit option or an iFrame in the tab so that the page isn't re-loaded.
Bob
As I feared: no clue on how to tackle either of those solutions... Thanks though....
I guess I'll have to find some help with this / do some research/learning
As I feared: no clue on how to tackle either of those solutions... Thanks though....
I guess I'll have to find some help with this / do some research/learning
Hi zassie,
The Ajax submit is an option in the form HTML (Render form) action - I'd try that first. If you used the Simple Wizard to create the form set the Form Type to Advanced in the General tab to see the action on the Setup tab.
Bob
Hi Bob,
Again: thanks for your help.
Unfortunately the AJAX submit doesn't do the trick: I only breaks the page: the tab structure is broken and I can only see the code where the tabs should appear (see attachment)
Another issue surficed: NoCaptcha doesn't load. I have 2 running on same page, somehow the one in Chronoform stopped loading.... quick fix by replacing it with recaptcha... but still unwanted.
Hi Bob,
Somehow the Nocaptcha problem is fixed.... Don't know how but it works again (your fix wasn't the solution, as that wasn't the problem... it simply wouldn't load.... which it has done for months)
I just realised something else with the AJAX submit and why the tabs are broken....
THe tabs aren't broken: the WHOLE page is loaded INSIDE the active tab (so you get a page inside a tab... the tabs in the tab won't display as a tab....)
I've left AJAX submit on for now, feel free to take a look (and/or submit a random form to see for yourself)
http://clownzassie.nl/looppoppen-seizoenskarakter/sjaak-en-pablo-delen-uit#plaats-een-optie
Hi zassie,
I suspect that the form is not submitting at all - the SEF URLs are just reloading the article page. The Ajax URL is http://your_domain.nl/looppoppen-seizoenskarakter/sjaak-en-pablo-delen-uit?chronoform=optieformulier&event=submit&tvout=ajax
I suggest that you try setting Relative URL to No in the form HTML (Render form) action and see if it then submits correctly.
Bob
It does submit, I get the filled out forms....
You just submitted one with example@example.com as emailaddress....
I'll give the relative URL a go....
As expected setting the relative URL to no only shows a thank you message... leaving the catalogue...
I guess I'll leave it as it was for now.
Again: thanks for the help Bob!
Hi zassie,
OK - so it does submit but the Ajax return is the full page. What is returning the page though?
By all means email or PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.
Bob
Hi Zassie,
I think that it is working OK now. You had ReDirects at the end of the On Submit action so the Ajax was returning the whole redirected page. I've removed them and turned the Ajax back on and the Thanks Message displays in the tab as expected.
Bob
PS I took a backup copy of the form before I edited - saved as optieformulier_copy
Awsome.... I thought I had deleted that already... thanks for your (extensive) help!