I have a multipage form where the user enters a list of options on page one. On page 3, the user enters a list of names and must select one or more options that were listed on the first page. To minimize user error and frustration with validation errors I would like to have the user entered options from page 1 reappear as checkboxes on page 3.
I understand how to write custom select lists and have done so for this form already. However, these options will be different for each user who fills out the form. I was hoping that it would be possible to write a function to generate a custom list based on the user input, but I cannot find where the values are stored before being submitted. I figured they would be in the $_POST variable since the "next page" buttons actually perform a submit, but they are not there.
Any insight on this issue is appreciated.
Comments
Comment #1
quicksketchI don't think this is possible, because Webform would have no way of generating results with what essentially would be an unlimited list of options. A demonstration of this problem: Webform adds up all the options that have been entered in each submission so that it can show you counts under the "Analysis" results tab. If the list is unlimited, Webform would have no way of showing those options in a logical manner.
A more immediate problem is simply that there aren't any variables passed into the options callbacks, so there's no way to generate that list anyway.
Comment #2
quicksketchClosing after lack of activity.