Write to PDF Issues

  • sam@attentiveconsulting.com.au
  • sam@attentiveconsulting.com.au's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

sam@attentiveconsulting.com.au created the topic: Write to PDF Issues

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)
#185608
Attachments:
  • MarioPuco
  • MarioPuco's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 2387
  • Karma: 57
  • Thank you received: 200

MarioPuco replied the topic: Write to PDF Issues

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
===============================================
#185643
  • sam@attentiveconsulting.com.au
  • sam@attentiveconsulting.com.au's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

sam@attentiveconsulting.com.au replied the topic: Write to PDF Issues

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.
#186945
Attachments:
  • MarioPuco
  • MarioPuco's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 2387
  • Karma: 57
  • Thank you received: 200

MarioPuco replied the topic: Write to PDF Issues

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
===============================================
#187375
  • sam@attentiveconsulting.com.au
  • sam@attentiveconsulting.com.au's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0

sam@attentiveconsulting.com.au replied the topic: Write to PDF Issues

Many thanks this worked.
#187597
  • MarioPuco
  • MarioPuco's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 2387
  • Karma: 57
  • Thank you received: 200

MarioPuco replied the topic: Write to PDF Issues

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
===============================================
#187604
Moderators: ForumSupporttomeperica
Time to create page: 0.036 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

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

All Extensions Subscription

Special Offer! Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for only 70!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions 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 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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here