Hi,

There's an error in showing the preview page in webforms.

We have activated the option in Webform > Form settings > Preview Page but when I press the Send button it goes directly to the thanks page.

Then we found the error: In the preview's page configuration, when the "Preview button label" is set to the value "Submit", then there's a bug and the webform thinks it's the submit button and not the preview page one.

http://civicrm.stackexchange.com/questions/10392/preview-page-not-shown-...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hgarcia created an issue. See original summary.

Jitujain’s picture

Hi hgarcia
Can you tell me that how you change the label of preview button. Can you paste the lines of code by which you have changed the label of preview button.

Dev1.addweb’s picture

Status: Active » Needs review
FileSize
814 bytes

Apply following patch to make things work: preview_page_not_shown-2789121-3.patch

riddhi.addweb’s picture

Status: Needs review » Reviewed & tested by the community

Hello Deepali,

Your Patch works well for me.

Thanks!

Liam Morland’s picture

Status: Reviewed & tested by the community » Needs work

Thanks for the patch. This needs a test. There is no reason to call t() with the empty string.