7
7
7GIT2020-06-11 15:42:51
CRM
7GIT, 2020-06-11 15:42:51

How to integrate envyCRM and Contact Form 7?

Tell me how to integrate CRM from Envybox with the Contact Form 7 plugin.

Given the following code

<script>WBK.sendCrmLead(630, {'name' : name, 'email' : email, 'phone' : phone, 'comment' : comment});</script>

They told me to substitute my values ​​in the form ... I can’t figure out what’s what ...
Tell me how to set it up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-06-11
@7GIT


you need to add an Events callback to the successful form submission event
like this

document.addEventListener( 'wpcf7mailsent', function( event ) {
  var inputs = event.detail.inputs // отсюда достаем значения полей формы
  WBK.sendCrmLead(630, {'name' : name, 'email' : email, 'phone' : phone, 'comment' : comment})
}, false );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question