TOPIC:

When click "next", Site jump to top 1 year 4 months ago #234294

  • Topic Author
  • Pascal Kurmann
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 97
  • Thanks: 0
Hallo

Ich habe ein mehrseitiges Formular zum blättern. Immer wenn ich jedoch auf "next" klicke, springt die Seite ganz nach oben. Das ist etwas doof, da das Formular erst etwas weiter unten kommt. Wie kann ich das Problem umgehen?

Liebe Grüsse
Colette Güntensperger

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

When click "next", Site jump to top 1 year 4 months ago #234327

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

I hope that we can continue in English since we don't have a German speaking support staff member at the moment.

To get focus on the top of next page please do as follows.

Go to Advanced properties of the FIRST element in the SECOND page. In the Initscript section, set Type to Library and check the Page Entry checkbox. Lastly, choose the FF::ff_getfocus script.

Repeat the procedure for every next page's first element.

That should do the trick.
Let me know whether this works as you wanted and if you have more questions, feel free to ask.

Regards,

Mihaela

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

When click "next", Site jump to top 1 year 4 months ago #234487

  • Topic Author
  • Pascal Kurmann
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 97
  • Thanks: 0
Hello mihaela

Unfortunately it doesn't work, redesign.lifestyle-immobilien.ch/immobilien-suche .

Regards, colette

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

When click "next", Site jump to top 1 year 4 months ago #234488

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello again,

You are right, in your case this solution doesn't work since you have a checkbox group elements and not elements like textfield or textarea.

To achieve what you want please do as follows:

First go to BreezingForms > Manage Scripts and in the "ff_nextpage" script comment out or delete this line of code:
self.scrollTo(0,0);

Go to Advanced properties of the any element in the SECOND page. In the Initscript section, set Type to Custom and check the Page Entry checkbox.

Then in the code area below that appears put the following code:
function ff_elementname_init(element, condition)
{
     jQuery("html, body").animate({ scrollTop: 
       jQuery('#ff_formdiv4').offset().top }, 1000);
} // ff_elementname_init
NOTE: In the code replace elementname with the actual Name of that element for which you are writing the script. Also, replace 4 in ff_formdiv4 with the ID of your form.

Repeat the procedure for a element on each page of your form.

Let me know whether this solution worked as expected.

Regards,

Mihaela

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.058 seconds

July Sale!

Discounts for all of our extensions + support. Ending July 31st!

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!