Adding a date to a form confirmation page


D

Dateless

I have a form and - on submittal - it is creating a confirmation page. Email
is going out no problem and everything is working great. HOWEVER...I would
like to have the date the form was submitted included on the confirmation
page. I've added the web component field of Date (so it comes in as [Date])
but it will not work! I see that someone else brought this up on another
question 4 years ago but it was never answered. So...hoping someone can help
me out!

Here is my confirmation page code:

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>PLEASE PRINT THIS PAGE</title>
</head>

<body>

<p><font face="Courier" size="2">Thank you for submitting your request for
Warehouse Storage. This is your confirmation page. </font></p>
<p><b><font face="Courier">Please print this page and affix to the item(s)
to be picked up.</font></b></p>
<p><font face="Courier" size="2">Date Submitted:
<!--webbot bot="ConfirmationField" S-Field="Date" --></font></p>
<table border="1" id="table1" width="51%">
<tr>
<td valign="top" width="34%"><font face="Tahoma" size="2">
<span lang="en-us"><font face="Courier" size="2">
Last Name, First Name:</font></span></font></td>
<td valign="top" width="63%"><font face="Tahoma" size="2">
<span lang="en-us"><font face="Courier" size="2">
<!--webbot bot="ConfirmationField" S-Field="EmployeeName"
--></font></span></font></td>
</tr>
<tr>
<td valign="top" width="34%">
<font size="2" face="Courier">Email<span lang="en-us">:</span></font></td>
<td valign="top" width="63%"><font face="Tahoma" size="2">
<span lang="en-us"><font face="Courier" size="2">
<!--webbot bot="ConfirmationField" S-Field="EmployeeEmail"
--></font></span></font></td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">Employee
Number:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="EmployeeNumber" --></font></td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">Employee
Phone Number:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="EmployeePhoneNumber"
--></font></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td valign="top" width="34%">
<font size="2" face="Courier">Alt. Contact</font><font face="Tahoma"
size="2"><font size="2" face="Courier"> Name</font><span lang="en-us"><font
face="Courier" size="2">:</font></span></font></td>
<td valign="top" width="63%"><font face="Tahoma" size="2">
<span lang="en-us"><font face="Courier" size="2">
<!--webbot bot="ConfirmationField" S-Field="AlternateContactName"
--></font></span></font></td>
</tr>
<tr>
<td valign="top" width="34%">
<font size="2" face="Courier">Alt. Contact Phone<span
lang="en-us">:</span></font></td>
<td valign="top" width="63%"><font face="Tahoma" size="2">
<span lang="en-us"><font face="Courier" size="2">
<!--webbot bot="ConfirmationField" S-Field="AlternateContactNumber"
--></font></span></font></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">CC for
storage:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="MonthlyCostCenter"
--></font></td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">CC for
delivery/drop-off:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="DeliveryCostCenter"
--></font></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">Asset
Description:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="AssetDescription"
--></font></td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">Asset
Tag #'s:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="AssetTagNos" --></font></td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">Current
$ Value:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
$<!--webbot bot="ConfirmationField" S-Field="Value" --></font></td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">Quantity
(if applicable):</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="Quantity" --></font></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">Is the
item stackable?</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="Stackable" --></font></td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">
Approximate Dimensions:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="Dim_Height" --> Ft High<br>
<!--webbot bot="ConfirmationField" S-Field="Dim_Width" --> Ft Wide<br>
<!--webbot bot="ConfirmationField" S-Field="Dim_Depth" --> Ft
Deep</font></td>
</tr>
<tr>
<td valign="top" width="34%"><font size="2" face="Courier">
Approximate Weight:</font></td>
<td valign="top" width="63%"><font size="2" face="Courier">
<!--webbot bot="ConfirmationField" S-Field="Weight" --> pounds</font></td>
</tr>
</table>

</body>

</html>
 
Ad

Advertisements

D

Dateless

Just another comment...I did include date and time on the source form "Saved
Fields" tab so that shouldn't be the problem.
 
R

Ronx

The confirmation field can only add or use fields that are in the form. The
extensions add the date serverside - it is NOT a field in the form.
You can add JavaScript that will write out the date
Something like:

<script type="text/javascript">
var lmd;
var dd = new Date();
var yy = dd.getFullYear();
var monthName = new
Array("January","February","March","April","May","June","July","August","September","October","November","December");
lmd = "<p>Submitted: <span style=\"padding-right: 20px;\"> " +
dd.getDate() + " " + monthName[dd.getMonth()] + " " + dd.getFullYear() +
"</span></p>";
document.write(lmd);
</script>
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
Ad

Advertisements

D

Dateless

You are geniously brilliant! I don't know that "geniously" is a proper word,
and I don't care. It fits! Thanks for the reply...and you even gave me the
"Submitted" label. WOOT! You have no idea how you saved me. Thanks again!!

Ronx said:
The confirmation field can only add or use fields that are in the form. The
extensions add the date serverside - it is NOT a field in the form.
You can add JavaScript that will write out the date
Something like:

<script type="text/javascript">
var lmd;
var dd = new Date();
var yy = dd.getFullYear();
var monthName = new
Array("January","February","March","April","May","June","July","August","September","October","November","December");
lmd = "<p>Submitted: <span style=\"padding-right: 20px;\"> " +
dd.getDate() + " " + monthName[dd.getMonth()] + " " + dd.getFullYear() +
"</span></p>";
document.write(lmd);
</script>
--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.



Dateless said:
Just another comment...I did include date and time on the source form
"Saved
Fields" tab so that shouldn't be the problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top