add_action(‘forminator_custom_form_after_save_entry’, ‘send_form_data_to_aiem’, 10, 2);
function send_form_data_to_aiem($entry_id, $form_id) {
if ($form_id !== 1200) {
return;
}
$entry = Forminator_API::get_entry($form_id, $entry_id);
if (!$entry) {
return;
}
$form_data = $entry->meta_data;
$data = [
[
"Key" => "Post_ID",
"Value" => $form_data['hidden-1']['value']
],
[
"Key" => "name",
"Value" => $form_data['name-1']['value']
],
[
"Key" => "surname",
"Value" => $form_data['name-2']['value']
],
[
"Key" => "email",
"Value" => $form_data['email-1']['value']
],
[
"Key" => "telephone",
"Value" => $form_data['phone-1']['value']
],
[
"Key" => "time_to_recontact",
"Value" => $form_data['text-1']['value']
],
[
"Key" => "message",
"Value" => $form_data['textarea-1']['value']
]
];
if (!empty($form_data['payment']['value'])) {
$data[] = [
"Key" => "online_payment",
"Value" => $form_data['payment']['value']
];
}
$body = json_encode(['data' => $data]);
$args = [
'body' => $body,
'headers' => [
'Authorization' => 'Bearer ',
'Content-Type' => 'application/json',
],
'timeout' => 60,
];
$url = 'https://www.gestionaleaiem.it/corsi/NewRequest';
$response = wp_remote_post($url, $args);
if (is_wp_error($response)) {
error_log('Forminator data sending error: ' . $response->get_error_message());
}
}
]]>I am more than happy to jump on a call, if needed, and collaborate.
Please advise.
Thanks and regards,
Vipin
When I add group using this example (https://kb.mc4wp.com/add-group-choice-cf7-forms/) the checked choice is not send via email.
Is there any trick to be able to populate Mailchimp and send the choice made by the user by email at the same time ?
Thank you for your help.
]]>“An error occurred while attempting to export personal data. Unable to generate export file. ZipArchive not available.”
How can I fix this?
]]>Many people do not fill out the second form, how can I get them to submit the first form?
I know I can have duplicate information. But it’s better than losing a client.
Thank you.
I would like to set a list in the form and being able to send it to Mailchimp.
Any idea ?
Thanks
]]>The form asks the user to select a “Preferred Clinic” using a selectbox. The client now want the form to send the data to an email address related to the selected clinic. e.g. If the user selects “Clinic1” the data should go to let’s say “<emailaddressforclinic1>@abc.com”. If the user selects “Clinic2” the data should go to let’s say “<emailaddressforclinic2>@abc.com”.
Is there a way I can achieve this?
Thanks in advance.
https://www.ads-software.com/plugins/si-contact-form/
]]>For my form located at : https://avocat.joliguide.fr/devis
I would like to send data to a 3rd party so I put some code in functions.php :
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
add_action('frm_after_create_entry', 'post_to_devis_juridique', 30, 2);
function post_to_devis_juridique($entry_id, $form_id) {
$post_url = 'https://www.business-angel.pro/contact.php';
$args = array();
$args['prenom'] = "prenom";
$args['nom'] = "nom";
$args['adresse'] = "France";
$args['cp'] = "13016";
$args['ville'] = "Estaque";
$args['tel'] = "0123456789";
$args['email'] = "[email protected]";
$args['commentaire'] = "hello";
$result = wp_remote_post($post_url, array('body' => $args));
}
My problem : it doesn’t validate the form located in https://www.business-angel.pro/contact.php even though the input id are good.
It returns :
Paramètres transmis :
Array
(
[prenom] => prenom
[nom] => nom
[adresse] => France
[cp] => 13016
[ville] => Estaque
[tel] => 0123456789
[email] => [email protected]
[commentaire] => hello
)
Réponse :
Array
(
[headers] => Array
(
[set-cookie] => Array
(
[0] => startBAK=R3415745932; path=/; expires=Wed, 29-May-2013 21:14:10 GMT
[1] => start=R3918473277; path=/; expires=Wed, 29-May-2013 21:11:44 GMT
[2] => PHPSESSID=244da7c16b41e72efe306f5e11991cf4; path=/
)
[date] => Wed, 29 May 2013 20:03:58 GMT
[content-type] => text/html; charset=utf-8
[connection] => close
[server] => Apache/2.2.X (OVH)
[x-powered-by] => PHP/5.2.17
[expires] => Thu, 19 Nov 1981 08:52:00 GMT
[cache-control] => no-store, no-cache, must-revalidate, post-check=0, pre-check=0
[pragma] => no-cache
[vary] => User-Agent,Accept-Encoding
)
[body] => <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>Contacter un Business Angel</title>
<meta name="description" content="Vous êtes à la recherche d'investisseurs et êtes un jeune entrepreneur web en PACA ? Soumettez-nous votre projet." />
<meta name="keywords" content="investisseur, business angel, entrepreneur, investisseurs, contact" />
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/inc/styles.css" media="all" />
<link rel="icon" type="image/png" href="/images/favicon.ico" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-3460829-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body id="forms">
<div id="hd"><h1>Contacter un Business Angel</h1></div>
<div id="rcol">
<img alt="Business Angel" src="/images/business-angel-xs.png" id="picto-little" width="280" height="212"/>
<div id="bloc">
<em>Mes critères</em>
<ul>
<li>Start-up web innovante</li>
<li>Autour de Marseille</li>
<li>Avec un vrai potentiel</li>
<li>Besoin de 10 à 100K€</li>
</ul>
</div>
</div>
<div id="bd">
<em>Soumettez-moi votre projet de création d'entreprise !</em>
<img alt="Contact" src="/images/inc/contact.png" id="picto-contact" width="100" height="101"/>
<div><form action="/inc/traitement.php" method="post"><input type="hidden" name="PHPSESSID" value="244da7c16b41e72efe306f5e11991cf4" /><p>
<!-- Affichage de l'erreur si le cas et récupération d'une valeur précédemment saisie -->
<label for="prenom">Prénom</label><input id="prenom" name="prenom" type="text" maxlength="100" value=""/>
<label for="nom">Nom</label><input id="nom" name="nom" type="text" maxlength="100" value=""/>
<label for="adresse">Adresse</label><input id="adresse" name="adresse" type="text" maxlength="100" value=""/>
<label for="cp">Code postal</label><input id="cp" name="cp" type="text" maxlength="5" value=""/>
<label for="ville">Ville</label><input id="ville" name="ville" type="text" maxlength="100" value=""/>
<label for="tel">Téléphone</label><input id="tel" name="tel" type="text" maxlength="10" value=""/>
<label for="email">E-mail</label><input id="email" name="email" type="text" maxlength="100" value=""/>
<label for="commentaire">Votre projet</label><textarea id="commentaire" name="commentaire" cols="35" rows="4"></textarea>
<input type="hidden" name="valider" value="valider"/>
<button type="submit" class="little btn" value="valider">Soumettre mon projet</button>
</p></form></div>
</div>
<div id="content">
<div itemtype="https://data-vocabulary.org/Breadcrumb" itemscope=""><p>
Vous êtes ici : Accueil
<a title="Business Angel" href="/?PHPSESSID=244da7c16b41e72efe306f5e11991cf4"><span itemprop="title">Business Angel</span></a>
?> Contacter un Business Angel
</p></div>
<h2>Contacter un Business Angel ?</h2>
<p>Vous souhaitez lancer votre start-up internet ou venez juste de le faire ? Il peut être intéressant alors de faire appel à des financements externes et notamment auprès de Business Angels ou Investisseurs particuliers. Le jeune créateur pense souvent pouvoir s'en sortir tout seul et c'est malheureusement, rarement le cas. Lever des fonds permet d'aller plus vite et la vitesse lorsqu'on est entrepreneur est cruciale : elle permet d'atteindre plus rapidement votre point mort et pérenise de fait votre société. Sans compter que faire rentrer un Business Angel à son capital, vous apporte un soutien de tous les instants et une forte expertise. Et ?a, ?a n'a pas de prix. Si vous êtes donc intéressé par lever des fonds auprès d'un Business Angel, et que vous habitez autour de Marseille, n'hésitez pas : remplissez ce formulaire de contact. A bient?t !</p>
</div>
<div id="ft"><p>Copyright ? 2011 Business-Angel.pro. Tous droits réservés.</p></div>
</body>
</html>
[response] => Array
(
=> 200
[message] => OK
)
[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => startBAK
[value] => R3415745932
[expires] => 1369862050
[path] => /
[domain] =>
)
[1] => WP_Http_Cookie Object
(
[name] => start
[value] => R3918473277
[expires] => 1369861904
[path] => /
[domain] =>
)
[2] => WP_Http_Cookie Object
(
[name] => PHPSESSID
[value] => 244da7c16b41e72efe306f5e11991cf4
[expires] =>
[path] => /
[domain] =>
)
)
[filename] =>
)
]]>