Skip Navigation

[Resolved] CRED email notification text is incomplete

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a CRED email notification set up that is sent out, but the message is incomplete. Some of the text that should be displayed in the middle of the notification does not appear, but other content beneath it does appear.

Solution: Ensure the syntax used to display your content is exactly right. An unterminated types field like this will cause a gap in your message, or a truncated message, depending on the content displayed after the field:

<p><strong>Email</strong>: [types field='crf-evsubm-contact-email']</p>
This support ticket is created 7 years 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by yvesM 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#591194

Hi,

I have a cred custom post (event) submission form set up with custom fields.
When a user submits the event, a notification is send out, with the custom fields included.
But when adding the date fields to the message, the complete line is truncated in the message (it is not included).
I've tried the raw format, but it is not solving the issue either.

#591318

Hi can you share the exact shortcode you are using to place the date field in your notification email? Here's a working example for a field with the slug "birthdate":

[types field='birthdate' style='text' format='F j, Y'][/types]

Result in email body: "November 4, 1970"

#591350

My code looks exactly the same, apart from the pure html code surrounding the shortcode.

<p><strong>From: [types field='startdate' style='text' format='F j, Y'][/types]</strong></p>

But this eats part of the message.

full code for the message (the crappy codes in between, are just to see which lines disappear.

<p><strong>Author</strong>: [wpv-post-author]</p>
<p><strong>Email</strong>: [types field='crf-evsubm-contact-email']</p>
<p>CCCCCC</p>
<p><strong>Title</strong>: [wpv-post-link]</p>
<p>DDDDDDD</p>
<p><strong>From: [types field='startdate' style='text' format='F j, Y'][/types]</strong></p>
<p>FFFFFF</p>
<p><strong>To: </strong></p>
<p>GGGGGG</p>
<p>[wpv-post-featured-image]</p>
<p><strong>Content</strong>: </p>
<p>[wpv-post-excerpt length='100' count='word' format='noautop']</p>
<p>HHHHHH</p>

results in this message received via email test.

Author:

Email:

FFFFFF

To: 

GGGGGG

Content: 

HHHHHH
#591363
<p><strong>Email</strong>: [types field='crf-evsubm-contact-email']</p>

Types field shortcodes must be explicitly closed. Add [/types] to this line before the closing paragraph tag and test again - I think this is the main issue based on the text that is being excluded.

#591422

Hi Christian,
Thanks for the second pair of eyes.
I was so focused on the date shortcodes, that I didn't see the error on the above lines.
I added the [/types] after the email, and things work perfect!