Published on
ChronoForms supports RTL - right-to-left - language layouts with a setting on the Styles tab of the Form Editor. This changes the CSS to move the labels to the right and make the other changes needed.
For a Multi-Language site where you need to switch between rtl and ltr languages you can add this code in a Custom Code action in the form On Load event before the HTML (render form) action.
<?php $jlang = JFactory::getLanguage(); $dir = $jlang->get('rtl'); if ( $dir == 1 ) { $form->params->set('rtl_support', 1); } ?>
This checks the rtl setting of the current language and switches the form rtl setting to match.
Comments: