Skip Navigation

[Resolved] Show (course) title link/name in CRED form dynamically in confirmation email

This support ticket is created 4 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
- 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 1 reply, has 2 voices.

Last updated by Luo Yang 4 years ago.

Assisted by: Luo Yang.

Author
Posts
#2163787

Tell us what you are trying to do?
I'm busy building n small courses site where users can enrol for online courses using a CRED form. I would like the admin to receive a notification email with the course title and link to the course they enrolled for. There is a "Enroll Now" button on the page that triggers a popup CRED form. So the post/course is not related or linked to the Enrolment CRED form. Will you be able to assist in guiding me in the best direction in displaying the enrolled course title in the confirmation email ?

#2164123

Hello,

I suggest you try these:
1) Create two post types:
- Course
- Enroll

2) Setup one-to-many relationship between above post types "Course" and "Enroll":
https://toolset.com/glossary/post-relationships/

3) Create a post form for creating new "Enroll" post:
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/
And setup the email notifications:
https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/

4) And display above child form link in single "Course" post:
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/#creating-forms-when-a-parent-post-is-preselected
section "Creating Forms with a Parent Post Preselected"