TOPIC:

Previous / Next Record link 1 year 4 weeks ago #247113

  • Topic Author
  • jvkeller
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 122
  • Thanks: 0
There's always a way!

Maybe something with the articles that it makes, I can use a module below it...

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

Previous / Next Record link 1 year 3 weeks ago #247166

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
Hi,

there actually is. You basically would need to wrap the pages in the content template using a div with ids representing the page numbers:
<div id="page1">
 <!-- fields for page 1 here -->
</div>

<div id="page2" style="display:none">
 <!-- fields for page 2 here -->
</div>

<div>
<button id="prev">Prev</button> <button id="next">Next</button>
</div>

So the above would basically set page1 as standard and visible and the following pages would be invisible initially.

Then in any of your field's setup, there is the "Scripts" tab.
Locate "init (JS)" section and use this to apply actions to the next and prev buttons:
let curr_page = 1;
let max_page = 2;

jQuery('#next').on('click', function(){
   if(curr_page < max_page){
      jQuery("#page"+curr_page).css("display", "none");
      JQuery("#page"+( curr_page + 1 )).css("display", "block");
     curr_page++;
  }
});

jQuery('#prev').on('click', function(){
   if(curr_page > 1){
      jQuery("#page"+curr_page).css("display", "none");
      JQuery("#page"+ ( page_num - 1) ).css("display", "block");
     curr_page--;
  }
});

There will be some more things to do like hiding the next/prev buttons when the boundaries are reached and switching to the right page in case of validation errors.

But the above is basically the starting point.

Regards,
Markus

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.045 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

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

Special Offer

Summer 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!