Created
July 20, 2023 12:49
-
-
Save russo97/bd4fb6dddfc4dae8d2a9d77afc17b3d6 to your computer and use it in GitHub Desktop.
get data from form and send them to your RDStation account
This file contains 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
//API e Código de integração | |
<script type="text/javascript" src="https://d335luupugsy2.cloudfront.net/js/integration/stable/rd-js-integration.min.js"></script> | |
//Este código de integração é encontrado nos dados da conta no painel do RD | |
<script type="text/javascript" async src="https://d335luupugsy2.cloudfront.net/js/loader-scripts/5d1f5125-2ff1-41ad-959d-5b2e3f6a2023-loader.js" > | |
jQuery('.wpcf7-form').submit(function(e){//é o form - tem que sar a tag form | |
jQuery('[type="submit"]').attr('disable','disable');//é o botão de envio | |
e.preventDefault(); | |
var postdata=jQuery('.wpcf7-form').serializeArray();//é o form - tem que sar a tag form | |
postdata.push({ | |
name:'token_rdstation', | |
value:'76d813f385092cd1c7a5e954a4c73c5e', | |
}, | |
{ | |
name:'identificador', | |
value:'rezerve', | |
} | |
); | |
RdIntegration.post(postdata,function(){ | |
alert("Obrigado por participar!"); | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment