I have a form with two pages and the second page is shown depending of the value selected in the first page.
The option "Enable preview page" is unchecked.

Case 1 (works as expected):
If the selected value of the first page is 0 the second page with a textfield and the "Submit" button is shown. On the second page the button "Submit" sends the form as expected and the "confirmation screen" is shown.

Case 2 (doesn't work as expected):
If the selected value of the first page is 1 the form must be directly submitted and the "confirmation screen" must be shown. But in this case the Preview page is shown instead of the confirmation page.

It seems that the option "Enable preview page" ist not respected. Is is tha expected behaviour?

Webform version: 7.x-4.10
Drupal: 7.39

Thanks in advance.

Comments

juagarc4 created an issue. See original summary.

DanChadwick’s picture

Category: Bug report » Support request
Status: Active » Fixed

Works as designed. The preview page is forced on when the last page would be completely hidden. Otherwise the "Next" button would unintentionally submit the form.

To avoid this situation, ensure that you last page can never be completely hidden by conditionals.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.