Skip Navigation

[Resolved] Populating Fields in Form Notification Emails

This support ticket is created 4 years, 2 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: Africa/Casablanca (GMT+01:00)

This topic contains 17 replies, has 3 voices.

Last updated by Jamal 4 years, 1 month ago.

Assisted by: Jamal.

Author
Posts
#1809991

I believe we can do it using a content template. Check this article about the item attribute. We can use a content template and pass it the item attribute as "%%POST_ID%%" and inside of that content template, we can pass the parent post to the item attribute.
Considering that the relationship's slug is "my-parent-my-child" we can create a content template "my-get-arrival-time". The content template will have:

[types field="arrival-time" item="@my-parent-my-child.parent"]

And we'll use the content template inside of the notification using:

[wpv-post-body template="my-get-arrival-time" item="%%POST_ID%%"] 

Please try it and if it does not work, I'll check on a clean install if this is a bug and will discuss it with our 2nd Tier to confirm.

#1814205

Still not working I'm afraid.

We are also expecting the notifications to be sent 1 day before the event date, but they are going a week before instead.

New threads created by Jamal and linked to this one are listed below:

https://toolset.com/forums/topic/reminder-email-is-not-sent-when-expected/

#1814817

I run a test locally and I was able to display the arrival date from the offer post with the following:
- New content template(slug: opportunity-arrival-date-for-reminder-notification) with the following code:

[types field='arrival-time' item="@opportunity-offer.parent"][/types]

I included it in the notification with:

[wpv-post-body view_template="opportunity-arrival-date-for-reminder-notification" item="%%POST_ID%%"]

Please create a content template and adapt the code to your template slug.

Regarding the issue in your last reply, I have created another ticket for it. For support rules, we are able to handle only one issue at a time. This helps us to bring you a better service and also helps other users to find all the information here exposed.