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

    Required fields - translation doesn't work

    Asked by dktv3 on February 21, 2011 at 01:47 PM

    I am trying to get the translation of the required flelds to work, but it's not going that well..

     

    My setup:
    Drupal installation, with alot of custom-code
    Drupal-script code to the form has been copied into an article - works great. (<script src="//www.jotform.com/jsform/10510436589"></script> )
    the translation-code copied to the head-tag in html-code, but the form doesn't read this

    <script type="text/javascript">

    JotForm.texts = {
    pleaseWait: 'Vent venligst...',
    confirmClearForm: 'Formularen slettes. Er du sikker på, at det er det du vil?',
    lessThan: 'Your score should be less than',
    incompleteFields: 'Der mangler noget...',
    required: 'Dette felt skal udfyldes.',
    email: 'Der er noget galt med e-mailadressen. Indtast en gyldig adresse',
    alphabetic: 'Der må kun skrives bogstaver i dette felt',
    numeric: 'Der må kun skrives tal i dette felt',
    alphanumeric: 'Der må kun stå tal og bogstaver i dette felt.',
    uploadExtensions: 'Kun følgende filtyper er tilladt:',
    uploadFilesize: 'Filen er for stor! Den må ikke være større end:'
    }
    </script>
    </head>

    Is it possible to translate these fields, when using the form-script like I do?

    Page URL:
    http://www.jotform.com/form/10510436589

  • Profile Image
    JotForm Founder

    Answered by aytekin on February 22, 2011 at 02:15 PM

    You cannot use both the jsform code and this. You should use the full form source code.

    Here is how you can get the form source code. Open the form on the Form Builder:
    1. Open "Setup & Share" tab on toolbar,
    2. Click on "Embed Form"
    3. Click on "Source Code" and copy the code provided.