TOPIC:

GWS Desk - how to contact the team? 4 months 3 weeks ago #278803

  • RedStar's Avatar Topic Author
  • RedStar
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 79
  • Thanks: 4
Hello Tihana.


Thank you for the support! :)

About form modification, for this you can enable Submission editable by user (set to yes), when you publish form inside menu and inside tab Add form you can see this, but for this user must be logged in.


Ok I enabled this through the radio button in the tab "Add form". My question is: After the user has logged-in, he will see the same form (filled) or a new one? If the same form will be showed I guess that a RESET button inside the form is needed, right? :huh:


About the PDF generate button inside a form, please let me know because I really need this feature.


Have a nice day.
Kind Regards.

Max.

Please Log in or Create an account to join the conversation.

GWS Desk - how to contact the team? 4 months 3 weeks ago #278805

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

yes, he will see the same form, with the latest information he added.
If you want then we can add reset button

About the PDF generate button inside a form, please let me know because I really need this feature.

I will add this soon, but please give me some time, I will try to test it today, because I am working on update for wordpress

Regards,
Tihana

Please Log in or Create an account to join the conversation.

GWS Desk - how to contact the team? 4 months 3 weeks ago #278813

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

I tested it and this is possible to get only when form is submitted, so I recomended to use it on thank you page.
crosstec.org/en/component/contentbuilder...-thank-you-page.html

There you can add button, and the code for generate of pdf

If you need more help, let me know

Regards,
Tihana

Please Log in or Create an account to join the conversation.

GWS Desk - how to contact the team? 4 months 2 weeks ago #279172

  • RedStar's Avatar Topic Author
  • RedStar
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 79
  • Thanks: 4
Hello Tihana!


Well noted for the form submission.

Regarding the PDF generate option: I need a custom code for my existing form. The link forwards to a thank you page example. How can I implement it to my forms?


Thank you in advance.


Kindest regards.

Max.

Please Log in or Create an account to join the conversation.

GWS Desk - how to contact the team? 4 months 2 weeks ago #279180

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

if you want to implement this download pdf of thank you page just download this example from link, unzip it and install it (joomla backend->Components->Breezingforms->Configuration->Package installer->select this xml file->install package), then you will see the form in Manage forms, inside Package QuickModeForms you will see form with name pdfdownloadthankyou.
Then you can use the code from form, and implement it in your form


But I will explain too how to add the code in your form:

1) on the last page (if you have checked last page is thank you page)->go to Properties->Page Properties->Intro->click on Edit and add:
<p>Thank you for your submission. Here you can download the summary of your submission as PDF</p>
<div id="pdf_download"> </div>

2) click on form name(your form)->Advanced->More options->Form pieces->After form and add this:
if( JRequest::getInt( 'ff_status', -1 ) == 0 ){
  echo '<script type="text/javascript">
<!--
document.getElementById("pdf_download").innerHTML = \'<a href="'.JURI::root(true).'/components/com_breezingforms/exports/'.basename(JFactory::getSession()->get('breezingforms.pdf.download', '')).'">DOWNLOAD PDF</a>\';  
//->
</script>';
}

3) go to your form->Advacned->More options->Submit pieces->End submit and add this:
global $ff_compath;

        $file = JPATH_SITE . '/administrator/components/com_breezingforms/pdftpl/' . $this->formrow->name . '_pdf_attachment.php';
        if (!JFile::exists($file)) {
            $file = JPATH_SITE . '/administrator/components/com_breezingforms/pdftpl/pdf_attachment.php';
        }

        $processed = array();
        $xmldata = array();

        $_xmldata = $this->xmldata;
        
        foreach ($_xmldata as $data) {
            $xmldata[] = $data;
        }

        ob_start();
        require($file);
        $c = ob_get_contents();
        ob_end_clean();

        require_once(JPATH_SITE . '/administrator/components/com_breezingforms/libraries/tcpdf/tcpdf.php');
        $pdf = new TCPDF();
        $pdf->setPrintHeader(false);
        $pdf->AddPage();
        $pdf->writeHTML($c);
        mt_srand();
        $pdfname = $ff_compath . '/exports/download-pdf-' . date('YmdHis') . '-' . mt_rand(0, mt_getrandmax()) . '.pdf';
        $pdf->lastPage();
        $pdf->Output($pdfname, "F");

        JFactory::getSession()->set('breezingforms.pdf.download', $pdfname);

If you need more help, let me know

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

GWS Desk - how to contact the team? 4 months 1 week ago #279322

  • RedStar's Avatar Topic Author
  • RedStar
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 79
  • Thanks: 4
Hello Tihana!


Thank you for the explanations.

So if I resume: I need to add your code into my form (steps from 1 to 3) without the need of downloading the example, right?


Kind regards.

Max.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!