Skip Navigation

[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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Dieses Thema enthält 12 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von aaronM-9 vor 6 Jahren, 5 Monaten.

Assistiert von: Shane.

Author
Artikel
#911143
temp.jpg

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.

- Aaron

#911190

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Aaron,

Thank you for contacting our support forum.

Could you try putting the Option Name here and see if it works.

Thanks,
Shane

#911247
temp1.jpg

I'm sorry - not sure if I'm following. Attached is the field setup. Do you want me to put the name of the field, as in "connection-friend"?

- Aaron

#911267

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Aaron,

I see what you mean now.

I'm assuming the other mails are being sent out correctly?

Would you mind providing me with admin access so that I can check on this ?

Thanks,
Shane

#912037

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Screen Shot 2018-06-11 at 2.58.36 PM.png

Hi Aaron,

This actually works for me. See Screenshot

It sends me the email when I select the friend and submit the form.

Thanks,
Shane

#912040

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Aaron,

I see that you're running some tests.

Could you change the email section I forgot to set it back to what it was . I just got some emails from your site.

Thanks,
Shane

#912041

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).

- Aaron

#912631

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Aaron,

I see what you mean.

I'm checking on this again for you.

Thanks,
Shane

#912634

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Could you try changing the save of option for the custom field to save nothing to the database?

#912656

The issue is still occurring once I set to save nothing to the database.

- Aaron

#913184

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Aaron,

I took some time to replicate this on a fresh install and I was able to replicate with no issues.

Will be escalating for further debugging to get this fixed.

Thanks,
Shane

#917963

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Aaron,

Sorry for the delay in response.

Could you try this with the checkbox value set to save nothing to the database?

Thanks,
Shane

#918037

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.

- Aaron