Skip Navigation

[Resolved] Types Field Shortcode Displays in Email Notification Instead of Actual Content

This support ticket is created 6 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by julieP 5 years, 12 months ago.

Assisted by: Nigel.

Author
Posts
#1154636

PLEASE ALLOCATE TO NIGEL - this is a follow on from ticket (https://toolset.com/forums/topic/email-notifications-conditional-statements/#post-1150605)

On one of my forms, the user selects one of two options for one custom field (radio select) and other fields are then shown depending on that choice. In the email they are sent on form submission, their choice is confirmed. I'm using wpv-conditional shortcodes to display their choice like this:-

[wpv-conditional if="( $(wpcf-my-choice) eq '1' )"][types field='custom-field-1'][/types][/wpv-conditional][wpv-conditional if="( $(wpcf-my-choice) eq '2' )"][types field='custom-field-2'][/types][/wpv-conditional]

I've used this for a long time now but they no longer work since CRED 2.1.2. If I roll back to 2.1.1.2, they work again. Types field shortcodes outside wpv-conditionals are working correctly; it's only the ones inside the conditional shortcocde that aren't.

I tried the patch here https://toolset.com/errata/types-shortcodes-are-not-expanding-in-toolset-forms-notifications/ but it made no difference.

Any ideas what's going on here please?

#1154769

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Julie

Updates for most of the plugins are now likely to be published tomorrow, and as those will include two fixes for separate known issues about shortcodes being printed in form notifications, can we wait until they are released and test again?

Let me know if they fix this particular issue, but if not I'll need to confirm the issue and escalate.

#1158520

Hi Nigel

Thanks for letting me know about the updates. I've uploaded the new versions and content in email notifications is now rendering correctly.

Many thanks