TOPIC:

Toggling sections on/off moves them down the page 1 year 2 months ago #235887

  • Topic Author
  • baileynp
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 76
  • Thanks: 1
Hi Mihaela

I've added the code and tested it, and now after clicking on a 'Listening' option, the section disappears and the Reading section doesn't appear. :)

Regards

Nigel

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

Toggling sections on/off moves them down the page 1 year 2 months ago #235898

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

That must be due to the type of section that you are using.

I've tested this on All in a row Fieldset section.

I have attached the package with a form, zipped it attached to this post so you can see that in this case, it is working fine.

In your case this targets the parent page, page 2 so that is the reason why nothing is displayed. Please try to remove one and two "parent()" in:
jQuery("[name=\"ff_nm_optListening[]\"]").parent().parent().parent().parent().parent().parent().parent().parent().css('display','none');
and see whether it appears.

Let me know the result.

Regards,

Mihaela
Attachments:

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

Toggling sections on/off moves them down the page 1 year 2 months ago #235901

  • Topic Author
  • baileynp
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 76
  • Thanks: 1
Hi Mihaela

Removing parents (that makes me sound like a serial killer :P) did the trick and now all is ok. :)

Just one final question. My form is contained in a module displayed within the website page. When I move from form page to form page, how do I go to the top of the module, i.e. the form, and not the actual page? I know I've seen some type of scroll function on my travels around the forums, but I'm not sure if that's what I should be looking at.

Regards and thanks again

Nigel

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

Toggling sections on/off moves them down the page 1 year 2 months ago #235903

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

Haha, that does sound a bit scary. I'm glad that it is now working properly.

To make the page scroll to the form do as follows.

On the second page of the form, go to Advanced properties of radio group in your form and in the Initscript section set Type to Custom and check the "Page Entry" checkbox.
Then in the code area below 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 above replace "elementname" with the Name of that element(radio group) for which you are writing the script.
Also, replace 4 in ff_formdiv4 with the Script ID of your form which you can find in BreezingForms > Manage Records.

Repeat the procedure for the following form pages as well.

Let me know whether it worked as you wanted.

Regards,

Mihaela
The following user(s) said Thank You: baileynp

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

Toggling sections on/off moves them down the page 1 year 2 months ago #235910

  • Topic Author
  • baileynp
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 76
  • Thanks: 1
Thank you sooo much Mihaela - that's perfect.

Call closed. :)

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

Toggling sections on/off moves them down the page 1 year 2 months ago #235980

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

I'm glad I've helped and that this is working as you wanted. :)

Best regards,

Mihaela

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

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

Summer Sale!

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!