Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created 5 webforms. Then, created a Quicktab to display each webform in its own tab. So I have 5 tabs/5 webforms - great.
The issue I have is when I submit a webform (with errors) on Tab 2, 3, 4 or 5, the form refreshes to let me know I have errors, but it also takes me back to Tab 1.
I have to remember which Tab (webform) I was originally on, then select the tab, then fix my webform errors.
I am using the ui_tabs renderer on Quicktabs, and I do have History selected.
Any help would be appreciated. thanks.
Comment | File | Size | Author |
---|---|---|---|
#5 | quicktabswebform.zip | 1.47 KB | knalstaaf |
Comments
Comment #1
hansnavas CreditAttribution: hansnavas commentedComment #2
Back From 7 CreditAttribution: Back From 7 commentedThis is happening to me too... Webform is in a block with all pages set to display in block.
Quicktabs 7.36 reverts back to default tab when required fields cause validation errors. This module is unusable with webforms.
UPDATE: When using node instead of block with webforms, the tab stays put and DOES NOT REVERT back to default tab. This seems to be working now.
Comment #3
Back From 7 CreditAttribution: Back From 7 commentedUPDATE 2: This didn't work. I had my default tab as the node for testing. The tabs still move back to the first tab. My webform was supposed to be in tab 3...
Comment #4
cornelyus CreditAttribution: cornelyus commentedHi
I have same issue, except with EntityForm...
Comment #5
knalstaaf CreditAttribution: knalstaaf commentedAttached to this post you'll find a submodule which provides a possible fix to the issue with Webform and pagebreaks.
Mind you that this module isn't plug & play; you'll have to adjust the form ID's (
quicktabswebform.module
) and tab ID's (js/redirect.js
) to the one's you're using in your project (as indicated by comments in its code).