We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1829
    • 15 Posts
    Hello everybody!
    I have a problem using FormIt Snippet and cyrillic error messages. The Snippet call:

    [[!FormIt?
        &hooks=`spam,email,redirect`
        &emailTpl=`contactsPageEmail`
        &emailTo=`[email protected]`
        &redirectTo=`74`
    
        &validate=`name:required,phone:required,email:email,message:required:stripTags`
    
        &validationErrorMessage=`Ваше сообщение не было отправлено. Пожалуйста, проверьте правильность введенных вами данных.`
        &name.vTextRequired=`Представьтесь, пожалуйста.`
        &phone.vTextRequired=`Укажите ваш контактный телефон.`
        &email.vTextEmailInvalid=`Указан неправильный адрес электронной почты.`
        &email.vTextEmailInvalidDomain=`Домен, указанный в адресе электронной почты, не существует.`
    ]]
    

    Gives this message in the [[!+fi.validation_error_message]] placeholder:
    Ваше сообщение не было отправлено. Пожалуйста, проверьте правильность введенных вами данных.`
    &name.vTextRequired=`Представьтесь, пожалуйста.`
    &phone.vTextRequired=`Ука

    If I change the validationErrorMessage param to &validationErrorMessage=`An error has occured`, everethyng works fine.

    Any suggestions?
    Thanks in advance!

    p.s. MODX Revolution 2.1.3-pl (traditional), formit-2.0.2-pl
      • 3749
      • 24,544 Posts
      Take a look at the DB in PhpMyAdmin and make sure that all tables and fields are in the same character set as the one specified in core/config/config.inc.php. If not, see this: http://bobsguides.com/convert-db-utf8.html
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 33392
        • 8 Posts
        try
        redirec tTo On Not Found=`74`
        , for my a solution wen redirect not work
          • 1829
          • 15 Posts
          Quote from: BobRay at Nov 02, 2011, 03:24 AM
          Take a look at the DB in PhpMyAdmin and make sure that all tables and fields are in the same character set as the one specified in core/config/config.inc.php. If not, see this: http://bobsguides.com/convert-db-utf8.html
          All the tables and fields are in the same charset as specified in config.inc.php

          The next strange behaviour I've noticed. If I put the FormIt snippet call with symbol @, it results in the page without any form:
          [[!FormIt@orderForm?
              &emailTpl=`shopOrderEmailAdmin`
              &errTpl=`[[+error]]`
              &vTextRequired=`Это поле обязательно для заполнения.`
              &fiarTpl=`shopOrderEmailClient`
              &fiarSubject=`Заказ №[[+orderID]]`
              &fiarToField=`email`
              &fiarFrom=`[email protected]`
              &fiarFromName=`Bender`
          ]]


          But if I put the 'fiarFrom' parameter in the 'orderForm' parameter set, everything works great...