ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com