Clicking the Next or Previous buttons should probably scroll the page up to the top. At the moment, if you have one page of the multipage form thats quite long, and the next page is very short, when you click the next button to go from the long page to the short page, you then have to scroll up to be able to see any of the form elements on the short page, as they are all right at the top.

Comments

Version:7.x-2.x-dev» 7.x-1.x-dev
Status:Active» Needs review
StatusFileSize
new904 bytes

Status:Needs review» Reviewed & tested by the community

Simple enough patch. Works as expected, just had to clear cache. Thanks for solving this mrfelton!

Status:Reviewed & tested by the community» Fixed

Changed the patch a bit. $('#page') is a bit hardcoded on theme. And a page group is not always on top of the page.
The window now pops to the multipage wrapper

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Patch rerolled from #1 with the addition of whitespace removal.

Sorry. Environment specific pathing removed from patch.

Re-rolled for latest dev using #page for those who want it. I'm still not convinced that the multipage group wrapper is the best solution, as it cuts off the top portion of the page that may be relevant.

The patch in #7 seems to work for me on simplytest.me. Is this not working for anyone? If not, any reason not to commit this?

@kyleoliveira:

FYI: Patch #7 worked great for me too. The only issue I had was when I also installed the Field Group Ajaxified Multipage module. For some reason, when you select the "Ajaxify" checkbox for a multipage group, the Next and Previous buttons don't scroll to the top. But if I un-select that checkbox, it works fine.

I'm guessing that if anyone has an issue at this point, it probably has something to do with that module, not the Field Group module with this patch on its own. I've created an issue report for that module with this information here: https://drupal.org/node/2111709.