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

CommentFileSizeAuthor
page_navigation.patch1.39 KBmklangeman

Comments

mklangeman’s picture

So 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

quicksketch’s picture

Status: Active » Closed (fixed)

Both the save as draft patch and #254728: Conditional fields have been committed, which I think should cover the use-cases of this issue.