How can I display different language text depending upon user location?

  • Profile Image
    AlecTaylor
    Asked on November 26, 2015 at 02:51 PM

    Hi,

    I'm attempting to use the "Get Visitor location" widget to return the user country, then use "hide\show" conditionals on text fields to display a different language text depending upon the user country.

     

    For example, if the user is in France, then the "Get Visitor location" returns Country: France, and my text box with French language is shown. The English and German text boxes are hidden.

     

    If the user if from Germany, then the German text box is shown and the English and French versions are hidden.

     

    How can I do this? Or, is there a better way of presenting the relevant language according to the location of the user?

     

    Many thanks! ALec.

  • Profile Image
    Ben
    Answered on November 26, 2015 at 04:08 PM

    The best way to do this would be by utilizing our tools: How to make your forms multilingual?

    Using these tools will allow you to set them up to match the language to the one set in the users browser (which is often better than automatically switching it for them - for example if they are on vacation, etc).

    To set it as such, when you are in the language wizard, just click on the Options button

    Then look for the automatic detection and make sure that it is checked:

    They would still be able to switch their language if they prefer and you can set the thank you page to use different language based on the language used on the form as per this guide: How to change thank you message depending on the language used?

    If you would still prefer to do this through the conditions, that should be possible but might require a bit more setup.

    My suggestion in that case would be to use the following conditions setup: Show or Hide multiple fields at once using form collapse tool as it is faster than hiding multiple fields directly.

    Do let us know if you have any questions along the way and we would be happy to assist with the same :)

  • Profile Image
    AlecTaylor
    Answered on November 27, 2015 at 03:31 AM

    Excellent. Many thanks Ben, that's what I need.

    A follow up question - after completing the form, the user will be directed to my underlying website. I need to direct them to either an English, French or German version of my website, depending again upon the language set in their system.

    How would I set up a conditional rule that redirected the user to a different URL depending upon their set language?

    Many thanks in advance,

    Alec.

  • Profile Image
    Sammy
    Answered on November 27, 2015 at 03:47 AM

    After setting up your form language, you can use it in conditions to trigger the changing of the thank you URL page.