webform-confirmation.tpl.php in Webform 6.3
Same filename and directory in other branches
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
templates/webform-confirmation.tpl.phpView 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
if ($confirmation_message) {
?>
<?php
print $confirmation_message;
?>
<?php
}
else {
?>
<p><?php
print t('Thank you, your submission has been received.');
?></p>
<?php
}
?>
</div>
<div class="links">
<a href="<?php
print url('node/' . $node->nid);
?>"><?php
print t('Go back to the form');
?></a>
</div>