Closed (won't fix)
Project:
Webform
Version:
7.x-3.11
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2011 at 10:28 UTC
Updated:
4 May 2012 at 20:27 UTC
In a multi-page form it would be good when validation-warnings (non-blocking) are given instead of errors so users can continue to next page. Only before final submitting a validation-error is given.
Comments
Comment #1
quicksketchSo how would the user correct their errors? How would an error be defined as "non-blocking"?
Webform doesn't have the ability to go to a particular page directly in the form. See these issues:
#335480: Set separate URL for each page of Multi-Page Forms (Funnel Tracking)
#258696: Multipage form - Page n of n (progress or percentage complete)
At this point there are so many technical reasons why we wouldn't do this I don't think there is much reason to keep this issue open.
Comment #2
vernond commentedquicksketch is quite right about this being a non-trivial server-side change within the module, but you'd possibly be able to achieve something like the effect you require by making use of css and jquery, i.e. set up the form as a single page, group your "pages" into fieldsets, set all the fieldsets except the first one to display: none; onclick of submit button hide the current fieldset and show the next one via javascript (change the button text, display error messages etc via javascript).
You may need to conditionally include the css file that does the hiding of fieldsets only when form is loaded for the first time to be sure that users can see the Webform generated errors and highlighted fields when the form redisplays. Experimentation will be your best guide.
Comment #3
quicksketch