Skip Navigation

[Resolved] Date from Post Form entry not formatted properly in email notification

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 6.66 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by janeC-2 3 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2176011
TS2.jpg
TS1.jpg

Hi,
When people add dates to my form using the date picker, the email notification shows this extra information:

Date of Birth
display-only September 1, 2021
datepicker 1630454400
datetime 2021-09-01
hour 00
minute 00
timestamp 1630454400

When I first set up the form, the data came across as plain text not in a grid format. Is there a way to get it to just send me the plain entry data?

#2177263

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

It seems you are displaying the %%FORM_DATA%% placeholder to print the email content and there is no way to change the %%FORM_DATA%% placeholder content.

you will have to customize your email by adding the shortcodes to it.

#2178241

I would prefer to use the shortcodes in my emails but I don't think I am formatting them correctly.

Could you please give me an example of how I could print the fname lname and Date Of Birth in the notification email?
This is what I was using but it comes out blank

Name: [types field='fname'][/types] [types field='lname'][/types]

DOB: [types field='date-of-birth' style='text' format='d/m/y'][/types]

#2178247

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please try the following code:

Name: [types field='fname' item='%%POST_ID%%'][/types] [types field='lname' item='%%POST_ID%%'][/types]

DOB: [types field='date-of-birth' style='text' format='d/m/y' item='%%POST_ID%%'][/types]
#2178251

My issue is resolved now. Thank you!