Missing Timestamp in Notification Email
Permalink Browser Info Environment
We are using version 3.0 Formify and the Timestamp field is empty when the email notification is received. Refer to attached screenshot. Are we missing specific settings to get the timestamp to display as the client would like to know when the form was submitted. Thank you and appreciate any help
Type: | Ticket |
---|---|
Status: | Archived |
Hi Phil, Appreciate the help! We have implemented the code suggested above (see screenshot) and it is still unsuccessful in showing the Timestamp in our email notification. Only difference is that our environment is #PHP Version 7.1.10, any further thoughts?
Hi,
Curious, can you try using just
Best
Phil
Curious, can you try using just
{{ timestamp }}
Best
Phil
We were unable to resolve the issue with your latest suggestion. The timestamp title shows up in the email but still no data is shown. If there are any other suggestions we appreciate the help!
Hi,
Can you attach a graphic of what is now showing and can you post your full notification template (header, content and footer)
Best
Phil
Can you attach a graphic of what is now showing and can you post your full notification template (header, content and footer)
Best
Phil
In adjusting the code to your latest solution of simply inputting {{ timestamp }} these are the results, see attached (EmailNotification.png). It appears it's now recognizing the element but some kind of additional formatting is needed. We then included the formatted code you provided initially and as a result all that appears in the email is the word "Timestamp" (no numbers, etc). Thank you again for the continued help!
Hi,
Okay thanks, I am making some progress as I can now duplicate your error in my system.
Best
Phil
Okay thanks, I am making some progress as I can now duplicate your error in my system.
Best
Phil
Great! Let us know if needing any additional information
Hi,
Can you try the code below in the content section of your notification template and then send a graphic of the results. Thanks Phil
Can you try the code below in the content section of your notification template and then send a graphic of the results. Thanks Phil
<table cellpadding="0" cellspacing="0" border="0" style="width:100%;background-color:#f3f3f3;"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="max-width:600px;margin:40px auto;background-color:#fff;border-radius:4px;"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" style="max-width:500px;margin:50px auto;padding:0 50px;"> <tr> <td style="margin:0.25em;padding:1em;border-bottom:solid 1px #ccc;"><strong>Field</strong></td> <td style="margin:0.25em;padding:1em;border-bottom:solid 1px #ccc;"><strong>Value</strong></td> </tr> {% for a in emailableanswers %} <tr> <td style="margin:0.25em;padding:1em;border-bottom:solid 1px #eee;">{{ a.label }} </td> <td style="margin:0.25em;padding:1em;border-bottom:solid 1px #eee;">{{ a }} </td>
Viewing 15 lines of 40 lines. View entire code block.
Using the code above here was the email notification result, everything filled out except for the Timestamp field being left empty (see attached for email notification)
This result was successful! Thank you so much!! attached is the timestamp with the date and time shown. Appreciate the help
Hi,
Glad I could. The issue seems to be because Justin (the developer) shifted formify to using liquid templates in version 3. It seems some systems still accept timestamp in the template and some not but as you discovered DATE on its own works. There are many ways you can format the date and time. See the link below
https://shopify.github.io/liquid/filters/date/...
There are a lot of new options with formify using the liquid templates. Its worth exploring all the various filters.
Best wishes
Phil
Glad I could. The issue seems to be because Justin (the developer) shifted formify to using liquid templates in version 3. It seems some systems still accept timestamp in the template and some not but as you discovered DATE on its own works. There are many ways you can format the date and time. See the link below
https://shopify.github.io/liquid/filters/date/...
There are a lot of new options with formify using the liquid templates. Its worth exploring all the various filters.
Best wishes
Phil
Ah, that makes sense so there was an inconsistency with the versions. Sounds good, we will check out the other options for the filters for future use, thank you again.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Adding the below code to the notification template used in a form
Output this
Record id
190
Timestamp
February 13, 2018, 06:25 am
This was done in c5.8.3.1 with php 7
Best
Phil