Skip Navigation

[Resolved] Notification Emails and relationships

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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by vickyB 1 year, 6 months ago.

Assisted by: Waqar.

Author
Posts
#2467315

Tell us what you are trying to do?

I have 3 cpts

Inspector
Client
Client Notification

Inspector and Clients are also both users and are in a many to many relationship

Client and Client Notification are in a one to many relationship

On the client template I have added a button to create a Client Notification child Post with the parent relationship to the client automatically selected but this will be clicked by the Inspector so the INspector will be the Author of the Client Notification Post.

However when the form is submitted I want the Client to be notified that the Client Notification Post has been created. I am struggling to find out where I can obtain the client email from.

Is there any documentation that you are following?

I've tried adding a custom placeholder like this https://toolset.com/documentation/programmer-reference/forms/how-to-use-custom-placeholders-in-cred-notifications/
But it looks like this is just for the subject and the body but not for the email fields

Is there a similar example that we can see?

What is the link to your site?
hidden link

#2467601

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

You can use the "cred_notification_recipients" filter to add more recipient email(s) to the form email notifications:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_notification_recipients

The following support thread includes an example code for a similar requirement:
https://toolset.com/forums/topic/how-to-add-parent-posts-custom-field-to-child-notification-font/#post-2331393

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2467615

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.