Skip Navigation

[Resolved] Notification on form submit when a custom field is checked?

This support ticket is created 5 years, 1 month 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 5 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1206042

Hello is it possible to set up a notification in CRED when a form is submitted AND a checkbox is checked?
So the notification should only be submitted when the checkbox is checked on submitting the form... if the checkbox isn't checked, no notification should be send.

#1206291

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

The conditions for sending notifications that are available in the form settings don't include conditionally sending the notification depending on the value of a field in the form when it is submitted.

For this you need to use the Forms API and write some custom code which uses the cred_notification_event_type hook to create a custom condition, and the cred_custom_notification_event_type_condition hook to return true or false depending on whatever it is you want to test.

This other thread shows the basics of what's required, are you able to expand upon that to include the condition you want to test?

https://toolset.com/forums/topic/cred-form-notification-email-conditional-on-generic-field/

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