Multiplier data Tcpdf

lawight90 09 Oct, 2017
Hello,
I have a form with some multiplier data, i managed to save/modify and show them correctly. My form in onSubmit event create a pdf using tcpdf action with all the data submitted, the 'standard' field shows correctly but the code for printing the multiplier field broke the pdf resulting a blank section with anymore data after that code

The code for printing the multiplier data is in a Custom Code after a Db Read action with Model Pdf_esp and Multi Read (the multi field are saved in a different table):


<?php
if ( !empty($form->data['Pdf_esp']) && is_array($form->data['Pdf_esp'] ) ) {
$session = array();
$i =1;
foreach ( $form->data['Pdf_esp'] as $s ) 
{
$session[] = '<tr><td>Esperienza Lavorativa '.$i.'</td</tr>';
foreach ($s as $index => $value)
If ($index != 'id')
{
$session[] .= "<tr><td>{$value}</td</tr>";
}
$i ++;}
$r = implode("\n",$session);
$form->data['mycontent'] = $r;
}
?>


and in the TCPDF content i put this {mycontent} for retriving the multi field

All works if {mycontent} is dispalyed in a Custom Code, but like i said the tcpdf stops genereting when have to print that section.

Sorry for my bad english, hope someone can help me.
Thanks
Max_admin 10 Oct, 2017
Hi lawight90,

Could you please post a screenshot of your form setup section ?

Could you please create quick test for for this in v6 and check if it works as expected ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.