I need a form that redirects to different thank you pages depending on the users language. Is this possible?

*Note: In the latest version of Breezingforms this is a native feature in Quickmode.

To have a different Thank You page using a form, you will need to create custom (article) Thank You pages so that the form recognizes the current language and redirect to the correct page when the form is submitted. If, for example, you have a form in english, german and spanish, you should add a code like follows into a custom End Submit script (Submit pieces > End > Custom):

 

$this->execPieceByName('ff_InitLib');
$lang = JFactory::getLanguage();
$i = $lang->getTag(); 
switch ($i)
{
     case "es-ES" :
     JFactory::getApplication()->redirect('/es/gracias');
     break;
     case "en-GB":
     JFactory::getApplication()->redirect('/en/thank-you');
     break;
     case "de-DE":
     JFactory::getApplication()->redirect('/de/danke');
     break;
}

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!