06 - Formcarry Contact Form
May 6, 2020
Register on Formcarry and get your Formcarry ID. Then go to config.php
and add your ID under the services
key.
Go to source/_assets/js/contact.js
and change fakeSend(contactForm)
to send(contactForm)
in the lines shown below.
e.preventDefault();
e.target.elements['submit'].disabled = true;
fakeSend(contactForm)
.then((response) => {
notyf.success('Your message has been sent.');
contactForm.reset();
})
And finally, remove this line.
const fakeSend = () => new Promise((resolve) => setTimeout(resolve, 2000));