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.
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-...
Comment | File | Size | Author |
---|---|---|---|
#3 | preview_page_not_shown-2789121-3.patch | 814 bytes | Dev1.addweb |
|
Comments
Comment #2
Jitujain CreditAttribution: Jitujain at Innoraft commentedHi 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.
Comment #3
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedApply following patch to make things work: preview_page_not_shown-2789121-3.patch
Comment #4
riddhi.addweb CreditAttribution: riddhi.addweb at AddWeb Solution Pvt. Ltd. commentedHello Deepali,
Your Patch works well for me.
Thanks!
Comment #5
Liam MorlandThanks for the patch. This needs a test. There is no reason to call t() with the empty string.