You are here

webform-confirmation.tpl.php in Webform 6.2

Customize confirmation screen after successful submission.

This file may be renamed "webform-confirmation-[nid].tpl.php" to target a specific webform e-mail on your site. Or you can leave it "webform-confirmation.tpl.php" to affect all webform confirmations on your site.

Available variables:

  • $node: The node object for this webform.
  • $confirmation_message: The confirmation message input by the webform author.
  • $sid: The unique submission ID of this submission.

File

webform-confirmation.tpl.php
View source
<?php

/**
 * @file
 * Customize confirmation screen after successful submission.
 *
 * This file may be renamed "webform-confirmation-[nid].tpl.php" to target a
 * specific webform e-mail on your site. Or you can leave it
 * "webform-confirmation.tpl.php" to affect all webform confirmations on your
 * site.
 *
 * Available variables:
 * - $node: The node object for this webform.
 * - $confirmation_message: The confirmation message input by the webform author.
 * - $sid: The unique submission ID of this submission.
 */
?>

<div class="webform-confirmation"><?php

print $confirmation_message;
?></div>

<div class="links">
  <a href="<?php

print url('node/' . $node->nid);
?>"><?php

print t('Go back to the form');
?></a>
</div>