When creating a multipage form with Field Group, the next button isn't always hidden when the user is on the last page. I think this is due to an assumption made in multipage.js that the last form page is the last item in the multipage form group wrapper. In my case there is an extra, empty bold tag after the last form page. Now, I haven't figured out why that is there, and I need to address that issue, but I'm not sure it is safe to assume that no other module might add something to the wrapper div. I tested this with the 1.x-dev and 2.x-dev versions of the module and the problem seems to be there as well.
I made a small change to mutlipage.js on line 39.
I changed
$(this).next().length
to
$(this).next().hasClass('field-group-multipage')
Now it is just a check to make sure the next div is part of the multipage form instead of assuming it is the last div and that nothing has been added to the div.
Comments