Drupal - 'You have already submitted...

in

Q: How can I remove the 'You have already submitted this form. View your previous submissions' message from my webform?
A: There is no setting to get rid of this message, however it can be quite easily removed by overriding: theme_webform_view_messages() in your theme.

Here is a handy way of removing the (sometimes) annoying webforms message - 'You have already submitted this form. View your previous submissions', see comment #11 by kees@qrios, here:

http://drupal.org/node/321870

put the following code into your theme's template.php file (which you should find in your theme folder):

function THEME_webform_view_messages($node, $teaser, $page,
$submission_count, $limit_exceeded, $allowed_roles) {
  theme_webform_view_messages($node, $teaser, $page, 0, $limit_exceeded, $allowed_roles);

remembering to replace THEME with your theme name, and the flush your cache.

It worked a charm for us, thanks kees@qrios!

Pingback

[...] Drupal - Webform remove 'You have already submitted this form..' message | Pride Web Design Cork pridedesign.ie/content/drupal-webform-remove-you-have-already-submitted-form-message – view page – cached Pride Web Design Cork are award winning website designers, online marketing and internet services company, we are based in Cork, Ireland. Tweets about this link [...]

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Pride on FacebookPride on TwitterPride on TwitterPride on Twitter

Join Our Newsletter

* indicates required

Irish Internet Association

phone-number.png