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; }