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

1 Attachment

Type: Ticket
Status: Archived
lilyLMD2018
View Replies:
PhilYoung replied on at Permalink Reply
PhilYoung
Hi,
Adding the below code to the notification template used in a form
Record id <br />
{{ id }}<br />
Timestamp <br />
{{ timestamp | date:"%B %e, %Y, %I:%M %P" }}

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
lilyLMD2018 replied on at Permalink Reply 1 Attachment
lilyLMD2018
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?
PhilYoung replied on at Permalink Reply
PhilYoung
Hi,
Curious, can you try using just
{{ timestamp }}

Best
Phil
lilyLMD2018 replied on at Permalink Reply
lilyLMD2018
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!
PhilYoung replied on at Permalink Reply
PhilYoung
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
lilyLMD2018 replied on at Permalink Reply 6 Attachments
lilyLMD2018
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!
PhilYoung replied on at Permalink Reply
PhilYoung
Hi,
Okay thanks, I am making some progress as I can now duplicate your error in my system.
Best
Phil
lilyLMD2018 replied on at Permalink Reply
lilyLMD2018
Great! Let us know if needing any additional information
PhilYoung replied on at Permalink Reply
PhilYoung
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
<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>
lilyLMD2018 replied on at Permalink Reply 1 Attachment
lilyLMD2018
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)
PhilYoung replied on at Permalink Reply
PhilYoung
okay, change just the line of code in that template that says
{{ timestamp | date:"%B %e, %Y, %I:%M %P" }}


to

{{ "now" | date: "%Y-%m-%d %H:%M" }}


and send me the result
lilyLMD2018 replied on at Permalink Reply 1 Attachment
lilyLMD2018
This result was successful! Thank you so much!! attached is the timestamp with the date and time shown. Appreciate the help
PhilYoung replied on at Permalink Reply
PhilYoung
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
lilyLMD2018 replied on at Permalink Reply
lilyLMD2018
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.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
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.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
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.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.1
Version Installed - 8.3.1
Database Version - 20171218000000

# concrete5 Packages
Block Designer (2.9.1), Formify (3.0), Simple Composer Blog (1.0.1)

# concrete5 Overrides
blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates/main_menu/view.php, blocks/autonav/templates/main_menu, blocks/autonav/templates, blocks/autonav/view.php, blocks/autonav, blocks/before_after/add.php, blocks/before_after/composer.php, blocks/before_after/config.json, blocks/before_after/controller.php, blocks/before_after/db.xml, blocks/before_after/edit.php, blocks/before_after/form.php, blocks/before_after/icon.png, blocks/before_after/view.php, blocks/before_after, blocks/feature_content/add.php, blocks/feature_content/composer.php, blocks/feature_content/config.json, blocks/feature_content/controller.php, blocks/feature_content/db.xml, blocks/feature_content/edit.php, blocks/feature_content/form.php, blocks/feature_content/icon.png, blocks/feature_content/view.php, blocks/feature_content, blocks/hero_slide/add.php, blocks/hero_slide/composer.php, blocks/hero_slide/config.json, blocks/hero_slide/controller.php, blocks/hero_slide/db.xml, blocks/hero_slide/edit.php, blocks/hero_slide/form.php, blocks/hero_slide/icon.png, blocks/hero_slide/templates/center.php, blocks/hero_slide/templates, blocks/hero_slide/view.php, blocks/hero_slide, blocks/page_list/templates/blog_list.php, blocks/page_list/templates, blocks/page_list, blocks/page_title/templates/blog_title/view.php, blocks/page_title/templates/blog_title, blocks/page_title/templates, blocks/page_title, blocks/video_block/add.php, blocks/video_block/composer.php, blocks/video_block/config.json, blocks/video_block/controller.php, blocks/video_block/db.xml, blocks/video_block/edit.php, blocks/video_block/form.php, blocks/video_block/icon.png, blocks/video_block/view.php, blocks/video_block, themes/lilylee/css/bootstrap.min.css, themes/lilylee/css/custom.css, themes/lilylee/css/font-awesome.min.css, themes/lilylee/css/lity.css, themes/lilylee/css/slick.css, themes/lilylee/css, themes/lilylee/default.php, themes/lilylee/description.txt, themes/lilylee/fonts/fontawesome-webfont.eot, themes/lilylee/fonts/fontawesome-webfont.svg, themes/lilylee/fonts/fontawesome-webfont.ttf, themes/lilylee/fonts/fontawesome-webfont.woff, themes/lilylee/fonts/fontawesome-webfont.woff2, themes/lilylee/fonts/FontAwesome.otf, themes/lilylee/fonts/glyphicons-halflings-regular.eot, themes/lilylee/fonts/glyphicons-halflings-regular.svg, themes/lilylee/fonts/glyphicons-halflings-regular.ttf, themes/lilylee/fonts/glyphicons-halflings-regular.woff, themes/lilylee/fonts/glyphicons-halflings-regular.woff2, themes/lilylee/fonts/twilight_script.eot, themes/lilylee/fonts/twilight_script.svg, themes/lilylee/fonts/twilight_script.woff, themes/lilylee/fonts, themes/lilylee/full.php, themes/lilylee/home.php, themes/lilylee/img/bkg-footer.jpg, themes/lilylee/img/bkg-hdr.jpg, themes/lilylee/img/bkg-spa.jpg, themes/lilylee/img/feature-1.jpg, themes/lilylee/img/feature-2.jpg, themes/lilylee/img/feature-3.jpg, themes/lilylee/img/ll-line-white.png, themes/lilylee/img/ll-line.png, themes/lilylee/img/logo-og.png, themes/lilylee/img/logo.jpg, themes/lilylee/img/pattern-flower.jpg, themes/lilylee/img/slide-1.jpg, themes/lilylee/img/slide-2.jpg, themes/lilylee/img, themes/lilylee/inc/footer.php, themes/lilylee/inc/header.php, themes/lilylee/inc, themes/lilylee/js/bootstrap.js, themes/lilylee/js/bootstrap.min.js, themes/lilylee/js/custom.js, themes/lilylee/js/cycle2.min.js, themes/lilylee/js/npm.js, themes/lilylee/js/slick.min.js, themes/lilylee/js, themes/lilylee/page_not_found.php, themes/lilylee/page_theme.php, themes/lilylee/secondary.php, themes/lilylee/thumbnail.png, themes/lilylee/view.php, themes/lilylee

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.1.10

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, fileinfo, filter, gd, gettext, hash, iconv, intl, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, readline, Reflection, session, SimpleXML, soap, SPL, sqlsrv, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 360
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 10000
memory_limit - 1548M
post_max_size - 20M
sql.safe_mode - Off
upload_max_filesize - 25M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 100000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.