Forums

can´t redirect

florian030 21 Sep, 2012
Hi,

i´m playing around with chronoforms on joomla 2.5 and it looks pretty good. but...😉

i created a form (say foo1) with 1 textbox and 1 submit-button.
inside "onsubmit" i use a custom-code which creats an value inside $form->data. This value is used with the Custom Event Switcher (success and fail).
On fail is also divided in two parts (say false and error) using Custom Event Switcher. False shows form foo2, error shows foo3.

foo3 contains only two submit-buttons ("new" and "leave"). OnSubmit the custom-script form Custom Event Switcher returns new or leave.

"new" should open foo1 again (ShowForm), "leave" uses a ReDirect URL. It makes no difference if choose "new" or "leave" - i allways get an empty chronoforms-page (i.e. only the footer is shown).

I hope this is explained well enough to get some help. If any code is neede, please let me know.

regards
florian
GreyHead 22 Sep, 2012
Hi florian,

An empty page is usually a sign that your form doesn't have any content or doesn't have a Show HTML action to display the HTML in the Preview box.

I'm not sure if this is the problem here as I find it hard to follow the sequence to work out what isn't showing.

The other thing to check is what the URLs are when you get the empty page.

Bob
florian030 22 Sep, 2012
Hi Bob,

thanks for your answer. I found the solution a few minutes ago. I did´t used data2session and session2data so the custom-code couldn´t use the expected variables.

Florian
This topic is locked and no more replies can be posted.