Hi,
I made a registration form in multiple languages with ChronoForms and Joomfish. My purpose is to send confirmation mail containing user registration data in the language of the registrant, but I also need inserting all data into the specific table in the admin's language. The values of the form are basically in admin's language. I wrote a cycle in the "onSubmit e-mail" field, where PHP replaces every form values in $_POST variable according to the user specific language. It works. My problem is with the db insertion. The forms setting are:
Enable Data storage: Yes
Saving Data/Emails order: Before Email
RunOrder:
Order of Autogenerated block 2
Order of OnSubmit block 3
Order of Plugins block 1
The table insertion doesn't seem to work (ChronoForms cannot write the translated values into MySQL enum fields which accepts only values in the admin's language, eg 'yes','no'), maybe the onSubmit block runs earlier than the insertion. What is the problem?
I made a registration form in multiple languages with ChronoForms and Joomfish. My purpose is to send confirmation mail containing user registration data in the language of the registrant, but I also need inserting all data into the specific table in the admin's language. The values of the form are basically in admin's language. I wrote a cycle in the "onSubmit e-mail" field, where PHP replaces every form values in $_POST variable according to the user specific language. It works. My problem is with the db insertion. The forms setting are:
Enable Data storage: Yes
Saving Data/Emails order: Before Email
RunOrder:
Order of Autogenerated block 2
Order of OnSubmit block 3
Order of Plugins block 1
The table insertion doesn't seem to work (ChronoForms cannot write the translated values into MySQL enum fields which accepts only values in the admin's language, eg 'yes','no'), maybe the onSubmit block runs earlier than the insertion. What is the problem?