Welcome, Guest

TOPIC: Write to PDF Issues

Write to PDF Issues 1 month 1 week ago #185608


  • Posts:3
  • sam@attentiveconsulting.com.au's Avatar
  • sam@attentiveconsulting.com.au
  • Fresh Boarder
  • Offline
  • Karma: 0
We are using a custom pdf template. But we have two issues:

1. in our normal email template we use {BF_RECORD_ID:value} for the id number for the form submission number. We cannot work out how to get the same in the custom pdf template. (see attachment field "DONATION NUMBER")

2. where have checkbox groups the pdf only shows the results of the last checked box. Naturally we want to show all the ones that are clicked. (see attachment, field "WHICH DAYS WORK BEST" only FRI comes up, but all days were checked)
Attachments:
The administrator has disabled public write access.

Write to PDF Issues 1 month 1 week ago #185643


  • Posts:1524 Thank you received: 117
  • MarioPuco's Avatar
  • MarioPuco
  • Administrator
  • Offline
  • Karma: 34
Hello,

If you take a look at our /media/breezingforms/pdftpl/pdf_attachment.php you can see that form record ID is added with :
<?php echo BFText::_('COM_BREEZINGFORMS_ID') ?>:

You can take a look at our documenttion on how to change the custom PDF tempalte : crosstec.org/en/support/online-documenta...-s-pdf-template.html

2) By default checkbox group should report all the values checked, so we would need to look at your pdf attachement. Can you send us your form + pdf attachment so we can check it out ?

To create a package pls follow this online doc : crosstec.org/en/support/online-documenta...ted/94-packages.html

After you create a package , zip it (.zip) and attach here.


Regards,
Mario
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
The administrator has disabled public write access.

Write to PDF Issues 2 weeks 5 days ago #186945


  • Posts:3
  • sam@attentiveconsulting.com.au's Avatar
  • sam@attentiveconsulting.com.au
  • Fresh Boarder
  • Offline
  • Karma: 0
There are still issues with this as follows:

See the attached package:
2. where is says "WHICH DAYS WORK BEST" all selected check boxes need to appear. not just the last one that was selected in the group.
3. where is says "ITEMS FOR UPLIFT" all selected check boxes need to appear. not just the last one. not just the last one that was selected in the group.

This is quite an urgent request. I would really appreciate it, thank you.
Attachments:
Last Edit: 2 weeks 5 days ago by sam@attentiveconsulting.com.au.
The administrator has disabled public write access.

Write to PDF Issues 1 week 6 days ago #187375


  • Posts:1524 Thank you received: 117
  • MarioPuco's Avatar
  • MarioPuco
  • Administrator
  • Offline
  • Karma: 34
Hello there,

Sorry for the delay.
You need to define your checkbox groups as arrays in order to print all the values in your PDF attachment.
So you would need to define your checkbox group variable like this :
$collected = array();
$special = array();

and also add this to the part below :

case 'collected':
          $collected[] = $value;
          break; 
 case 'special':
          $specia[] = $value;
          break;

And finally to output this array you need to use implode function which will take all the array values and print them out as a string.
Previously you used :
<?php echo $collected; ?>
<?php echo $special; ?>

Replace it with :
<?php echo  implode(',',$collected); ?>
<?php echo  implode(',',$special); ?>


And that's it ! Let us know if this worked for you.

Regards,
Mario
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
Last Edit: 1 week 6 days ago by MarioPuco.
The administrator has disabled public write access.

Write to PDF Issues 1 week 4 days ago #187597


  • Posts:3
  • sam@attentiveconsulting.com.au's Avatar
  • sam@attentiveconsulting.com.au
  • Fresh Boarder
  • Offline
  • Karma: 0
Many thanks this worked.
The administrator has disabled public write access.

Write to PDF Issues 1 week 4 days ago #187604


  • Posts:1524 Thank you received: 117
  • MarioPuco's Avatar
  • MarioPuco
  • Administrator
  • Offline
  • Karma: 34
Hello,

That's great !!

Let us know if you have more questions !!

Regards,
Mario
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
The administrator has disabled public write access.
Moderators: ForumSupport, pedro81, tomeperica
Time to create page: 0.087 seconds

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

New extension AnalyticsAnywhere released!

Track website visitors no matter if ad blockers are enabled! Check it out!

Lifetime Subscription

Special Offer! Get lifetime access to all of our current and future products and 2 years of professional support -- 149 for only 70!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates   this means, by purchasing a Lifetime Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our 1-Year or Lifetime Subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Pro Support Renewal Plans

If you just need professional support and no further access to downloads or simply want or need to renew professional support, you may choose between various support plans from here.