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
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);