Created
July 29, 2018 20:39
-
-
Save 4e6ka/2fea0b8120b897fee21ba4b9ea6e4e9c to your computer and use it in GitHub Desktop.
Цель в метрике, если используется AjaxForm + Formit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
На onsubmit ставить нет смысла. | |
Делаем так | |
[[!AjaxForm? | |
&snippet=`FormIt` | |
&hooks=`recaptchav2,email,spam,FormItSaveForm` | |
&form=`tpl.AjaxForm` | |
&submitVar=`callback` | |
&emailTpl=`MyEmailChunk` | |
&emailTo=`[email protected]` | |
&emailSubject=`Обратный звонок с сайта` | |
&validate=`phone:required:minLength=^7^, personal:required, g-recaptcha-response:required` | |
&validationErrorMessage=`В форме содержатся ошибки!` | |
&successMessage=`Сообщение успешно отправлено <script>yaCounterXXXXXXX.reachGoal('callback', 'getlid'); return true;</script>` | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment