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

mcpuddin created an issue. See original summary.

jrockowitz’s picture

I 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.

jrockowitz’s picture

Status: Active » Closed (won't fix)
electrokate’s picture

@jrockowitz Just wondering if there have been any changes to the code that may enable this?

jrockowitz’s picture

Yes, #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.