When using webforms in blocks it would be great to be able to choose between display of the confirmation appearing in the block or as a standard status message at the top of the page (which is the current setup).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

khiminrm’s picture

Subscribe

dddbbb’s picture

Title: Block webform confirmation message - display in block or displsay as page status message » Block webform confirmation message - display in block or display as page status message
Greg Varga’s picture

Subscribe

quicksketch’s picture

Thanks, this is a good suggestion. We should add this as an option in the block settings when you enable/configure the block (rather than as part of the Webform configuration page).

mgladding’s picture

I am interested in this as well!

Airzebeth’s picture

Subscribe too !

dddbbb’s picture

Please use the follow button. We don't need to use comments to subscribe anymore.

mattez’s picture

Any NEWS?

Bessonweb’s picture

Not present in webform 7.x-4.0-alpha6

I wanted to develop it myself but I have not been able.

Help us please !

peterrus’s picture

Version: 7.x-3.13 » 7.x-4.x-dev

Take a look at http://drupal.org/project/ife

There is also a ongoing discussion aiming to get this integrated in drupal 8.

peterrus’s picture

Issue summary: View changes

Corrected typos.

peterx’s picture

Issue summary: View changes

Please update https://www.drupal.org/node/1447436 with any changes to the block options.

DanChadwick’s picture

Status: Active » Fixed
FileSize
8.86 KB

Took pity on yet another 4-year old feature request. This patch:

  1. Adds an block option to show the confirmation message in the block.
  2. Defaults that option to show the confirmation message as configured in the webform.
  3. Detects the in-block submission and communicates the need for an in-block confirmation via the $_SESSSION global, just as drupal_set_message() does. It also ensures that the page isn't cached.
  4. Significantly refactors / simplifies the message and redirect logic when a page is submitted, making the code more clear. Whenever this is done, there is some risk of a regression, so testing is welcome. There was a test for an empty redirect entry in the webform, which should no longer be possible after webform_update_7304(), which changed all empty redirects to "confirmation".
  5. Sets the desired URL for the "Go back to the form" link on the confirmation page to be the same page when the confirmation message is display in the block.
  6. Changes the confirmation template file to user this new URL rather than creating it in the template file.

Committed to 7.x-4.x and 8.x.

Updated: https://www.drupal.org/node/1447436

  • DanChadwick committed 4fcb42d on 8.x-4.x
    Issue #1271784 by DanChadwick: Added option to see the confirmation...

Status: Fixed » Closed (fixed)

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