Problem: I need to send a CRED email notification to a user, conditionally, based on a custom user field in that user's profile.
Solution: Add a generic field in your CRED form that includes the user's email address. Apply conditional logic around this generic field, and test if the user's custom field value is a match. If so, include the generic field. If not, do not include the generic field. In your CRED email notification settings, choose the generic field as the target of the email notification. If the generic field is not present because the conditional was not matched, the email will not be sent.
Relevant Documentation:
Documentation about generic fields in CRED:
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/
Documentation about conditional output:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
Documentation about getting user meta fields:
https://toolset.com/documentation/user-guides/displaying-wordpress-user-fields/
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 |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 4 replies, has 2 voices.
Last updated by 7 years, 7 months ago.
Assisted by: Christian Cox.