Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms: State modifications of edited record in email with formatted date

Jan Priebe
Contributor
February 8, 2022

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? 

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
February 8, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events