When click "next", Site jump to top

  • Pascal Kurmann
  • Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 80
  • Thank you received: 0

Pascal Kurmann created the topic: When click "next", Site jump to top

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
#234294
  • mihaela
  • Away
  • Administrator
  • Administrator
  • Posts: 1938
  • Karma: 67
  • Thank you received: 234

mihaela replied the topic: When click "next", Site jump to top

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
#234327
  • Pascal Kurmann
  • Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 80
  • Thank you received: 0

Pascal Kurmann replied the topic: When click "next", Site jump to top

Hello mihaela

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

Regards, colette
#234487
  • mihaela
  • Away
  • Administrator
  • Administrator
  • Posts: 1938
  • Karma: 67
  • Thank you received: 234

mihaela replied the topic: When click "next", Site jump to top

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
#234488
Moderators: ForumSupporttomeperica
Time to create page: 0.062 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