× Form Help

Inserting a pagebreak in the PRINT only version of a form

  • MarioPuco
  • MarioPuco's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 5445
  • Karma: 114
  • Thank you received: 500

MarioPuco replied the topic: Inserting a pagebreak in the PRINT only version of a form

Hi,

Once more sorry for the delay time.
Let me know how it goes.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#234656
The following user(s) said Thank You: Johnny_E
  • Johnny_E
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0

Johnny_E replied the topic: Inserting a pagebreak in the PRINT only version of a form

Here is my custom.scss entry:

@media print{
.pagebreak {
page-break-before : always;
page-break-inside : avoid;
}
.bfPage {
display: block !important;
}


Here is what I have at the top of each page I want to break during printing:
<div class="pagebreak"> </div>

I then have the print summary... with a new custom button:



... and here is the config of the button:





When I click the PRINT FORM button, I'm NOT getting it sent to print. It is launching a blank browser tab.
#234663
Attachments:
  • MarioPuco
  • MarioPuco's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 5445
  • Karma: 114
  • Thank you received: 500

MarioPuco replied the topic: Inserting a pagebreak in the PRINT only version of a form

Hey,

I can see that your var printForm = document.getElementById('po1'); is wrong.
po1 is not BreezingForms Form ID.
Here you should get the form ID ( same format as ff_formdiv87 ) but yours will have a lower number.

If you are unclear how to find the ID you can send me the front end link of your Form and I will take a look at it for you.


Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#234672
  • Johnny_E
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0

Johnny_E replied the topic: Inserting a pagebreak in the PRINT only version of a form

OK... I'm getting progress! Found the Form ID and changed that from po1 to 'ff_form7'.

Now... I get a new tab with the print formatted form in it.. and the print dialogue pops up ok.

But... the pagebreaks are not happening.

Here is the form - and marked in red are the pages I need to be printed on separate pages:



Here is the "Print Summary" page - you'll see those same Motion 1-5 pages



Looking at "Motion 1", the 1st pagebreak example, here is the properties for that one. The "type" = "summarrize". is THAT stripping out all css and killing off what we've done? Is "summarize" the wrong way to add these 5 elements into the print summary?



Here is how the print css tab looks when you click that PRINT FORM button:

#234673
Attachments:
  • Johnny_E
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0

Johnny_E replied the topic: Inserting a pagebreak in the PRINT only version of a form

Here's what is rendered up on the browser... if I just look at the "Motion 1" page summary:
<div class="bfElemWrap control-group" id="bfElemWrap908">
<div class="controls form-inline"><div class=" "><label class="control-label" id="bfLabel908">Motion 1</label>
<span class="" style=""><div style="display: inline-block; vertical-align: top;" class="ff_elem bfSummarize" id="ff_elem908">ggg</div>
<script type="text/javascript"><!--
bfRegisterSummarize("ff_elem908", "m1", "bfTextarea", "", true)
//--></script></span></div></div></div>

No sign of any pagebreak div that we setup...
#234674
  • MarioPuco
  • MarioPuco's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 5445
  • Karma: 114
  • Thank you received: 500

MarioPuco replied the topic: Inserting a pagebreak in the PRINT only version of a form

Hi,

Regarding the style striping part, can you simply use window.print(); instead of the code I sent that requires from ID ?



Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#234675
Attachments:
Moderators: ForumSupporttomeperica
Time to create page: 0.906 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

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, 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