Remember me

Action next button

6 years 5 months ago #1

  • Tom's Avatar
  • Tom
  • Posts: 302
I have built a form with a page break. The form works fine. There is one small problem. The menu on the page is fixed. When I click next, the form goes to the next page and moves the page to the top of the form, but a couple of pixels too high and the form is covered by the menu. Where can I modify the code and how to adjust the page offset when going to the next page of the form.
an example here

6 years 5 months ago #2

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Hello,

You need at the ba-form.js (components/com_baforms/assets/js/ba-form.js)
line 1648
replace:
position = formParent.offset().top;
to
position = formParent.offset().top - 150;

and line 1745
var position = formParent.offset().top;
to
var position = formParent.offset().top - 150;

150 replace to the offset you need
But after the update all changes will be lost

Regards,
Vyacheslav, Balbooa.com

6 years 5 months ago #3

  • Tom's Avatar
  • Tom
  • Posts: 302
Best support ever!
Thank you very much!

6 years 5 months ago #4

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
You are welcome ;)
Powered by Kunena Forum