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 have a 5 page wizard and I want to link a user to complete the X page of it based off of where they stopped. It looks like these pages are accessed all via a form submission and doesn't look possible, but I just wanted to double check.
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI think you would have patch (aka hack) \Drupal\webform\WebformSubmissionForm::getCurrentPage. I am not seeing any immediate way to set the current page via a hook.
The issue with skipping pages dynamically is that this could easily break validation and/or allow partial form submissions.
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
electrokate CreditAttribution: electrokate commented@jrockowitz Just wondering if there have been any changes to the code that may enable this?
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYes, #2993140: Attempting to load an intermediate page of a multistep Webform with early page values pre-filled makes it possible to write custom code to jump programmatically to any wizard page.