What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How to integrate the language feature with Wordpress multilanguage installation?

    Asked by aegeetreasurer on November 12, 2013 at 04:22 PM

    Hi,

    I am embedding JotForms in my multi language Wordpress installation.

    Since there is now the option to use multiple languages in the same form (Kudos!) , I'd like to use this feature :)

    Instead of showing a language picker directly in the form, I'd like to have the form's language controlled by wordpress. 

    I tried this using e.g. a "?lang=de" parameter in the embed code, but this did not seem to be evaluated by the form. It always defaults to English.

    Is there another way to accomplish this?

    Thanks!

    kudos same form thanks same
  • Profile Image
    JotForm Support

    Answered by ardy0689 on November 12, 2013 at 06:41 PM

    Hello, thanks for posting your inquiry here on the forum.

    This can not be done directly from the form builder nor can be done via URL as the Form Translation adjust it dynamically using javascript when you change the language options.

    But I still believe this can be done using the form source code.

    However, I am unfamiliar with the multi language Wordpress on how the language works from there. Are you using the Wordpress multilanguage plugin somehow? If so, I will try to test if I can devise you javascript in which you can use in partner with the plugin. I will get back to you as soon as I have updates regarding this.

    Thank you

  • Profile Image

    Answered by aegeetreasurer on November 12, 2013 at 07:17 PM

    Hi,

    thanks for your response. I am using this plugin for multi language support: http://wordpress.org/plugins/qtranslate/
    It provides tabs for each language version of a page which can be filled separately. 

    http://www.qianqin.de/qtranslate/ decribes the three modes that can be used to control the language setting.

    Before JotForm supported multi languages, I created a form for each language and then just embedded them in their respecitive (language specific) page in wordpress.

    Now it could work the same way, the only difference is that instead of two different forms, I would just embed the same form twice but with different (lang) parameters.

    Imo it would be easier and more stable to evaluate this parameter somehow instead of intermingling with the plugin's JS but I am not an expert on this ;)

    Thanks again!

  • Profile Image
    JotForm Support

    Answered by ardy0689 on November 12, 2013 at 07:44 PM

    Thanks for the reply and explainging about the plugin.

    It seems that you can take advantage of the URL parameter after all. I will see what I can do with the form's source code to get the URL parameter and test it on my own Wordpress. I will get back to you as soon as I have updates with the script.

    Regards

  • Profile Image
    JotForm Support

    Answered by ardy0689 on November 13, 2013 at 12:55 PM

    Hello,I apologize for the delayed response. I just finished making the scripts and successfully implemented the auto switcher that you can use with your qTranslate Wordpress plugin

    Installation Prerequisites:

    *iframe Wordpress plugin by webvitaly

    http://wordpress.org/plugins/iframe/

    *qTranslate Wordpress plugin by Qian Qin

    http://www.qianqin.de/qtranslate/

     

    Download the formTranslationChanger.js here in this link. I also created an Installation.rtf file in which you can use for reference inside the ZIP archive.

    Please view this video to further guide you on the installation and to show you how it works.

    If you need further assistance, please do not hesitate to ask.

    Cheers!