Webform validation does not handle multistep webforms (webforms with a pagebreak component). At the end of each page all validation rules are checked, but the validation code only has the results from the current page. If there are any validation rules applied to fields on a different page, they will fail even though the user doesn't have access to that field.

There are a few possible approaches.
1. Don't validate until the last page is submitted. This is probably the easiest to implement, but it can be frustrating to users if there is a field on the first page that doesn't validate and they don't know until they are finished with the last page.
2. Validate after each page, but only validate the fields on the current page.
3. Hybrid of 1 and 2. Some rules make more sense to be validated immediately and others make sense to be validated at the end. If the validation rules had more information about the form status (which page was submitted, which values were submitted on this page, what values were submitted on previous pages), the rules could be written to handle multistep forms.

Comments

mlaw’s picture

I would love to see something like this as well.
Subscribing.

hendrakieran’s picture

I actually need this like right now, hopefully it's already in the roadmap ;)

svendecabooter’s picture

Assigned: Unassigned » svendecabooter
Status: Active » Fixed

Multistep form validation has been included in HEAD now, both for Webform 6.x-2.x & Webform 6.x-3.x.
Could you please test this on your installation and give me feedback whether it works as expected?

Status: Fixed » Closed (fixed)

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