I have a form which sends an email for modified records. In this email notification I managed to state the changes that have been done like this in a "no format" macro embedded in the IFTTT sending the mail:
#if(${entry.hasChanged("date")}) Modified value in "Date": [entry.date] #end
But in this case I get the unix date figure instead of a formatted date. I was wondering if I can use the virtual function formatDate in this no format view? And how?
If you access ConfiForms values via [entry.field_name] notations then. you get an internal value of the field and that is a timestamp for the date/datetime fields
Consider using formatDate function (can also accept the pattern)
#if(${entry.hasChanged("date")}) Modified value in "Date": [entry.date.formatDate] #end
https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions
Alex
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.