Home › Forums › Quform WordPress › sending form to external URL don’t work
- This topic has 3 replies, 2 voices, and was last updated 2 years, 9 months ago by Ally.
- AuthorPosts
- November 30, 2021 at 2:16 pm #33752triptanParticipant
I followed instruction found at this URL:
At first it was working, but then it stopped.
With a normal HTML form it still works., seem like the code I’ve used in a plugin is not called.
The code used is the following:<?php
/*
* Plugin Name: VTNext Qform integration
* Description: by Alberto Speggiorin: maps Qform form fields to VTEForm fields and set a custom form actions. To be used with form ID 1 (IT), ID 5 (FR) AND ID 6 (EN)
* Version: 2.6 – 29 11 21 – SOLO ITALIANO – no error debug
*//* ITALIANO*/
add_action(‘quform_post_process_1’, function (array $result, Quform_Form $form){
$data = array(
‘firstname’ => $form->getValue(‘quform_1_3’),
‘lastname’ => $form->getValue(‘quform_1_4’),
‘publicid’ => $form->getValue(‘quform_1_5’),
‘name’ => $form->getValue(‘quform_1_6′),
’email’ => $form->getValue(‘quform_1_7’),
‘company’ => $form->getValue(‘quform_1_8’),
‘website’ => $form->getValue(‘quform_1_9’),
‘designation’ => $form->getValue(‘quform_1_10’),
‘phone’ => $form->getValue(‘quform_1_11’),
‘label_Industria’ => $form->getValue(‘quform_1_12’),
‘label_Dimensione_azienda’ => $form->getValue(‘quform_1_13’),
‘label_Messaggio’ => $form->getValue(‘quform_1_14’),
‘leadsource’ => $form->getValue(‘quform_1_15’),
‘label_Form_url’ => $form->getValue(‘quform_1_16’),
‘label_Referring_url’ => $form->getValue(‘quform_1_17’),
‘label_User_agent’ => $form->getValue(‘quform_1_18’),
‘label_Privacy’ => $form->getValue(‘quform_1_19’),
‘country’ => $form->getValue(‘quform_1_21’)
);$response = wp_remote_post(‘https://xxx.xxx.it/modules/Webforms/capture.php’, array(
‘body’ => $data
));return $result;
}, 10, 2);December 1, 2021 at 9:57 am #33757AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 2 years, 12 months ago by Ally.
February 3, 2022 at 12:52 pm #33964triptanParticipantHI,
sorry for the late reply.
I’ve installed the plugin you suggested and you can see the result in the screenshot belowAttachments:
You must be logged in to view attached files.February 4, 2022 at 8:53 am #33967AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.