Answer the question
In order to leave comments, you need to log in
AmoCRM form redirect script?
You need to make sure that after the successful submission of the form, a redirect occurs.
Now the form only shows the message:
The form code is inserted into the page like this:
<!-- amoforms_form -->
<script>var amo_forms_params = {id: XXXXX, hash: 'XXXXX', locale: 'ru'};</script>
<script id="amoforms_script" async="async" src="https://forms.amocrm.ru/forms/assets/js/amoforms.js"></script>
<form id="amoforms_form" class="amoforms-form amoforms-view-form" action="https://forms.amocrm.ru/queue/add" method="post">
...
<div id="button_submit_wrapper">
<button type="submit" id="button_submit" class="">Отправить</button>
</div>
</form>
$("#amoforms_form").submit(function(event) {
event.preventDefault();
window.location.href = "http://ya.ru";
});
Answer the question
In order to leave comments, you need to log in
You go into your amocrm account - select the form you are integrating - there are three points at the top - select "form settings" - at the bottom there will be an item "Actions after submitting the form", check the box and drop the necessary link there - you're done.
The question is already 3 years old, but it can be useful to someone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question