Hi,
You would create a single PDF template and use the $form_data array to check what values have been entered, then load the applicable template.
For instance:
$product_type = $form_data['field'][20];
if ( $product_type == 'battery' ) {
//load battery template here
}
if ( $product_type == 'solar' ) {
//load solar template here
}
Hi I already alter the script as below and works fine, thank you
$list_html .= "<a href='http://www.domain.com/?gf_pdf=1&fid=$form_id&lid=$entry_id&template=default-file.php'><button class='sticky-list-duplicate submit'>PDF</button></a></td>";
How can you put a link to a different PDF template for each sticky list you have?
Example: One Sticky List prints default-template.php PDF
THe other sticky list you can click prints default-template-no-style.php
Hi I already alter the script as below and works fine, thank you
$list_html .= "<a href='http://www.domain.com/?gf_pdf=1&fid=$form_id&lid=$entry_id&template=default-file.php'><button class='sticky-list-duplicate submit'>PDF</button></a></td>";
Example: One Sticky List prints default-template.php PDF
THe other sticky list you can click prints default-template-no-style.php
We currently provide no support for Gravity Forms Sticky List plugin, so I don’t know how you would go about it. If they have a filter or action hook available you could use that to conditionally show the PDF links though.