[Gelöst] Conditional Notification Based on Checkbox Doesn't Work
This support ticket is created vor 6 Jahren, 5 Monaten. 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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
I have a form that sends a conditional notification as setup in the attached screenshot. The field it is conditional upon is a checkbox. However, the form is sending the notification every time the field is updated regardless of whether the checkbox is ticked (value set at 1) or not.
Sorry if you just got a few e-mails. I didn't realize at first you'd hard coded yours. I just tested again by hard coding my e-mail address and yes, it sends the notification when I check the box, but the problem is that it also sends the notification when I UN-check the box. Is this not happening for you? It's sending me a notification every time the box is changed, but I only want it to send when it goes from un-checked to checked (not the other way).
I've already made that change from some advice on a separate thread and it had no effect. The only way I could get this notification to stop sending things when it's not supposed to was to delete it entirely. I've opted for sending e-mails using a custom hook since the built-in Toolset functionality seems to be a bit finicky in this area. It's not perfect, but it will at least stop e-mails from going out unnecessarily to users.