Closed (fixed)
Project:
Webform
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2009 at 16:31 UTC
Updated:
26 Jan 2010 at 03:24 UTC
I am working on some changes that will allow for non-linear page navigation throughout a form. The current plan is to have a new "section" component. This is basically a copy of the markup component. Sections can be created and besides being displayed throughout the form, they will be turned into a navigation menu.
The idea is that this will be combined with some "Save as Draft" type functionality so that a form page can be auto-saved before moving to another page.
So while it's not especially useful at this point, I thought I share the snippet of code and see whether anyone has any feedback on it or the feature idea in general.
peace,
Matt
| Comment | File | Size | Author |
|---|---|---|---|
| page_navigation.patch | 1.39 KB | mklangeman |
Comments
Comment #1
mklangeman commentedSo it looks like I went into this non-linear navigation thing a bit naively. It appears the way the form architecture that underlies the webform module makes it difficult to move non-linearly between pages.
Based on this thread #373559: Manually Implement Next/Previous Page Logic, it is a difficult thing to do.
I'm still trying to figure out a way to make this work with the idea of "save as draft" #226907: Patch adding save draft feature. But I'm not sure how and were I should be loading data from the draft submission (in the database) into the $form_state variable.
- Matt
Comment #2
quicksketchBoth the save as draft patch and #254728: Conditional fields have been committed, which I think should cover the use-cases of this issue.