Forums

Chronoform and Joomfish problem

CedricKaftan 08 Apr, 2011
Hello GreyHead (I took the liberty to guess who's going to answer my post first, sorry if it's anyone else though) :mrgreen:

I have something to ask. Where can I set the redirection URL after a failed server side validation? My problem is because of I am using Joomfish. After any failed server side validation, chronoform redirected the page to the default language, because from what I'm seing in the URL, there's no information about the current language, so it get directed to the default language.

My idea is I am going to include the current language tag to the redirection URL.

The problem is more and less the same in here.

You can use the small flag in the upper right corner to switch language.

Thanks.
GreyHead 08 Apr, 2011
Hi CedricKaftan,

The language information should also be in the Language Object and this will pick up the settings OK.

You don't say how you are managing language in your forms?

Bob
CedricKaftan 08 Apr, 2011

The language information should also be in the Language Object and this will pick up the settings OK.



I don't understand what you mean by this. By saying 'this will pick up the settings OK' does it mean that it suppose to work fine and there's probably something wrong with my settings? Do you have any guess where so I can check? And also can you provide some snippet about how to get the Language Object?

Actually I've tried to echo the language tag variable in the validation error message. But every time I switch to English (en-GB), whenever there's a server side validation error, it is always switched back to the default language. In my case it is Indonesian language (in-ID).

You don't say how you are managing language in your forms?
Bob



In the example site that I've given I really don't know how they are managing the language. I just show you the example site because it is close enough to my case judging from the URL generated after a server validation error.

My site is still in my localhost, nothing published yet on the internet. But in my site I used two different form with Joomfish handling the language (and form) switching. I've tried the language plugin but got the same case like this when I was using ReCaptcha, so I went back and created two forms instead. One form for each language.

Anything else that I should provide in this thread? Screenshot or code snippet?

Thanks a lot for your help Bob

Regards from Indonesia

Cedric
GreyHead 09 Apr, 2011
Hi Cedric,

I'm afraid that I have no idea how this all works when using Joomfish with two different forms.

I've always tried to use one form either with the Multi-Language plug-in (which works quite well); or by using a PHP switch statement to include in different language blocks depending on the setting of the Language Object*.

Bob

* The docs for the Language object are here but are a bit technical, I can't find a simple description right now.
This topic is locked and no more replies can be posted.