Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Form Builder integration currently does some crazy work to pretend that pagebreak components aren't page breaks so that Webform will return the entire form with all pages in it. We don't need to have this special casing, since Webform already has a special $filter property that determines if field properties are sanitized or not. If $filter = FALSE, we can simply skip all conditional rules and page checking and return the entire form.
Comment | File | Size | Author |
---|---|---|---|
webform_all_pages_unfiltered.patch | 1.79 KB | quicksketch | |
Comments
Comment #1
quicksketchCommitted to both 3.x branches.
Comment #2
emptyvoid CreditAttribution: emptyvoid commentedSo, I have some crazy results.
On my local development environment the update doesn't appear to have any affect. However I had to manually delete the form_builder_cache entries for my webform for it to update correctly.
On my development server deleting the cache didn't help, rather when in "edit" mode the page break form elements disappeared and only the first page of fields is visible! I have confirmed that the components for all subsequent pages are GONE and are not within the database any longer. {crying in his soup}
Luckily I have a working copy locally so I'm going to manually add the component records back into the database.. lucky me :P
Comment #3
emptyvoid CreditAttribution: emptyvoid commentedOh ok I updated webform to 7.x-dev March 29th 2012 release and the page break feature appears to "stick" and the fields don't get caplowied anymore.
Comment #4
quicksketchThanks for testing @emptyvoid! I didn't have any problems like you described, but it does require that you update both Webform and Form Builder at the same time.