Reply To: Matching the form layout in your email or PDF output

Home Forums Quform WordPress Matching the form layout in your email or PDF output Reply To: Matching the form layout in your email or PDF output

#32559
quezmedia
Participant

so I have tried web merge. and I am getting an issue where not all fields are being mapped. When we try fetching the fields using qu from predefined functions all fields are not mapping.

We are not able to capture dynamic filed values containing catalog number, catalog quantity and catalog description. We are getting only first two rows of catalog.

here is my code:

add_action(‘quform_post_process_2’, function (array $result, Quform_Form $form) {
$url = ‘https://www.webmerge.me/merge/703341/1aplhb’;

$values = array();

foreach ($form->getRecursiveIterator() as $element) {
if ($element instanceof Quform_Element_Field) {
$values[$element->getName()] = $element->getValue();
}
}
print_r($values);exit;

$data = array(
‘Body’ => $form->getValues(),
);

$args = array(
‘body’ => $data
);

wp_remote_post($url, $args);

return $result;
}, 10, 2);

Attachments:
You must be logged in to view attached files.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy