Required fields - translation doesn't work

  • Profile Image
    dktv3
    Asked 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?

  • Profile Image
    aytekin
    Answered 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.