Can I create an embed code that defaults to a secondary language?

  • Profile Image
    usapears
    Asked on January 27, 2014 at 02:15 PM

    I have created a form for an online contest, and I also have the form translated into French. I have the form published online in English, and it looks great, but I don't love the small button that's provided to switch the language to French. The language button appears above the banner image on the webpage and won't be easily seen or understood by users.

    I have webpages in French that mirror the English version, including contest terms and conditions, entry form, etc., and I would like to also embed the form on the French webpage, but would need it to default to French, not English.

    Can I generate an embed code with this option?

    Thank you.

  • Profile Image
    NeilVicente
    Answered on January 27, 2014 at 02:29 PM

    I am afraid this is not possible yet, but this sounds like an awesome addition, so I have submitted a ticket to have this simple yet useful feature be implemented soon.

    We will inform you if and when it becomes available.

    Thank you for this idea!

  • Profile Image
    klevas
    Answered on May 08, 2014 at 04:34 PM

    Hello,

     

    Looking forward to this simple feature.

     

    We have form in 4 languages, and having one single for all of them - would be great!

    Especially embeding it in mirrored translated website as well.

     

    Thanks

  • Profile Image
    NeilVicente
    Answered on May 08, 2014 at 05:14 PM

    Hi,

    As per our developer Emre, this option is now available. Simply append ?language=[language_code] to your form embed codes' URL.

    For example:

    If you want to embed the form as Russian, your embed code should be:

    <script type="text/javascript" src="https://secure.jotformpro.com/jsform/41253016933953?language=ru"></script>

    You can also call the standalone form at:

    https://secure.jotformpro.com/form/41253016933953?language=ru

    For a list of language codes:

    http://www.w3schools.com/tags/ref_language_codes.asp

    ----

    Hope this helps.

  • Profile Image
    klevas
    Answered on May 11, 2014 at 07:05 AM

    Hello,

     

    Thanks for your reply.

    But to be fair, I tried that as well. As I knew that there were language tags for forms. Which work when linkin form, but not embedding.

    But they do not seem to work when embedding form.

    I am testing embed code on this website: http://jsfiddle.net/

    And when I try to run <script type="text/javascript" src="https://secure.jotformpro.com/jsform/41253016933953?language=ru"></script> Or any other language + hidden dropdown - it does not work

    Could this be jsfiddle.com not working? Should I actuall try and put it on actual website?


    Did put it here: https://www.klevas.co.uk/lt/test1-452 Still no luck.

     

    Also, looking at JS code:

    https://secure.jotformpro.com/jsform/41253016933953?language=en-UK

    When tag is added, new line appears: FrameBuilder.get = {"language":"en-UK"};

    But it does not pick that language.

     

    Can you have a look please?

     

    Thanks

  • Profile Image
    NeilVicente
    Answered on May 11, 2014 at 07:39 AM

    Sorry about that. Yes, you are right, it does not seem to work when using the script embed code.

    I have reopened the ticket to alert our developers of this possible bug.

    In the meantime, I would suggest embedding the form using iframe embed option. Then, append the language parameter to the end of the URL.

    I have tested this temporary solution and it works on my end.

    Cheers!

  • Profile Image
    klevas
    Answered on May 13, 2014 at 04:31 AM
    Hello,
    Thanks for your reply.
    I will give it ago.
    I will let you know.
    Have a nice day!
    ...
  • Profile Image
    klevas
    Answered on March 06, 2016 at 01:23 PM

    Hello, has these bug been fixed? I cannot seem to be able to embed with secondary language or dropdown=hidden.

    However, it works in iFrame

  • Profile Image
    Mike_G
    Answered on March 06, 2016 at 05:05 PM

    @klevas

    I have moved your question to a new thread which you can follow by clicking this link.

    Thank you.