Does anybody knows how to print all messages (confirmations or error messages) outside the form (created using the Webform module, for example right after the body tag?

I've changed the markup of my alerts. I want them to be full screen, but I can't achieve this, when they're inside the form.


1 Answer 1


Yes, Webform is working on drupal default message

<?php if ($messages): ?>
  <div id="messages"><div class="section clearfix">
    <?php print $messages; ?>
  </div></div> <!-- /.section, /#messages -->
<?php endif; ?> 

You need to put this code according to your requirement on the template (page.tpl.php).

Finally, webform submission thank you message will be shown on your content section which is coming on node.tpl.php

<?php print $links; ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.