Don't scroll to top on Form Submit

  • Posts: 15273
  • Karma: 287
  • Thank you received: 1074

pedro81 replied the topic: Don't scroll to top on Form Submit

Hi,

try this solution:
crosstec.org/en/forums/40-club-forums-su....html?start=6#157076

i think that you can find many other solutions in internet just looking for "scrollto anchor"

Regards,
Pedro
=========================================Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
==============================================
#164686
  • Posts: 19
  • Thank you received: 0

maxximus replied the topic: Don't scroll to top on Form Submit

Hi Pedro,

Thank you for your response.
But how can I add them to this code?

for your help I am very grateful.

<?php
if( JRequest::getVar("ff_form_submitted", 0) == 1 ){
echo '

jQuery(document).ready(function(){
self.scrollTo(0,800);
});
';
}
?>

function ff_sofortberatung_init()
{
} // ff_sofortberatung_init


Regards
Toni
#164698
  • Posts: 15273
  • Karma: 287
  • Thank you received: 1074

pedro81 replied the topic: Don't scroll to top on Form Submit

Hi,

you need to create an anchor into your page and then just use the info that i linked to you.
<a href="#anchor">Link Text</a>

Regards,
Pedro
=========================================Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
==============================================
#164879
  • Posts: 19
  • Thank you received: 0

maxximus replied the topic: Don't scroll to top on Form Submit

Hi,

The anchor works on the page without problems. I would like to.
The user clicks "Sofortberatung" and the page scrolls automatically to the form. This works without problems.
After the form is filled out and sent, the page should automatically scroll down to the "Sofortberatung" (that does not work at the moment). Then he sees the thank you page. Can this be solved with the initialization script and a part of this code?

<?php
if( JRequest::getVar("ff_form_submitted", 0) == 1 ){
echo '

jQuery(document).ready(function(){
self.scrollTo(0,800);
});
';
}
?>

function ff_sofortberatung_init()
{
} // ff_sofortberatung_init

Sorry, am not a programmer and I am very grateful for your help.

Regards
Toni
#164883
  • Posts: 19
  • Thank you received: 0

maxximus replied the topic: Don't scroll to top on Form Submit

Hello
can someone help me?

Regards
Toni
#165298
  • Posts: 65
  • Thank you received: 0

Philippe66 replied the topic: Don't scroll to top on Form Submit

hi, since the update BreezingForms 1.8.7 Stable (build 893), This function does not work? Can you solve the problem?

thx
<?php
if( JRequest::getVar("ff_form_submitted", 0) == 1 ){
echo '

   jQuery(document).ready(function(){
      self.scrollTo(0,999999);
   });
';
}
?>

function ff_test_uploads_init()
{
} // ff_test_uploads_init
#180197
Moderators: ForumSupport
Time to create page: 0.051 seconds

We Are Doing Our Part

Massive discounts on all of our extension subscription plans to help you and your business in these times.

Get Your Subscription Here

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

We are doing our part and support your business with extremely low prices -- For example 6-Months-Subscription for only $9 USD. For as long as necessary.

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!