You are here

webform-confirmation.tpl.php in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7

Same filename and directory in other branches
  1. 7.2 themes/vartheme2/templates/webform-confirmation.tpl.php

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

themes/vartheme2/templates/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

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);
?>"><i class="icon-arrow-left"></i> <?php

print t('Go back to @page', array(
  '@page' => $node->title,
));
?></a>
</div>