Skip Navigation

[Resolved] Add conditional field to Notification e-mail body

This support ticket is created 6 years, 5 months 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1102296

Dear Sir/Madam,

I have a form with some conditional field, I want to send a confirmation email to customer after submission, how can I insert the conditional field? For example, if a customer doesn't select an item from the selection field, I want to show N/A in the email body.

Best regards,

Kelvin.

#1102359

Dear Kelvin.

You are right, there isn't "Conditional output" button within "Notification e-mail body" editor, as a workaround, you can create a new content template, in the template editor, there "Conditional output" button, you can use it to setup [wpv-conditional] shortcode
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-conditional

Then back to the Toolset form, in the "Notification e-mail body" editor, click "Fields and Views", insert the shortcode of above content template into the mail body.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body

#1102608
Screen Shot 2018-09-08 at 12.41.11 AM.png

Dear Luo Yang,

Thanks for your reply. When I create a content template, what should I select from post type? What is the checkbox for "Apply to existing Enquiry items" and what is the "Translation Priorities"? (see screenshot)

Best regards,

Kelvin.

#1104259

You just need to choose the option "Don't assign to any post type".