Skip Navigation

[Resolved] Email Notification Being Sent When No Notification Defined

This support ticket is created 4 years 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by KentS9937 4 years ago.

Assisted by: Minesh.

Author
Posts
#1884447

I have a post form (ID 5006) which is sending an email notification which is defined in another post form (ID 5587). I did not expect the form(5006) to send an email since no notifications are defined in the form.

I can send you instructions to recreate the problem if you'd like.

What is the link to your site?
The site is a live site and requires login to see the issue. I'm happy to provide admin credentials if you would like to access the site.

#1885047

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

No other user reported such issue so first I would like to check whats going on with your site.

Can you please share problem URL where you added the form which does not have any notification setup and I will see if I can see the email is still sent or not.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1885983

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I checked and I found that you setup a notification trigger for the following form on "When custom fields are modified" and you configure the field "Submission Status" equal to "submitted".
=> hidden link

The thing is that when you setup the notification on "When custom fields are modified", it will send notification whenever custom field is changed irrespective of form you submit. This setting will also send the notification when someone will change the custom field from the admin while editing the post.

I checked you are using Layouts plugin and you have massive structure build using that. The thing is that I could not able to locate from what content template the section "RECRUITER TOOLS" is displayed?

I checked with my test site where I made two edit post form and to one there is no notification and to another form I've added the notification. When I submit the form that is having no notification configured, I do not see any notification triggers hence I do not able to reproduce the issue with my test site.

But, on your site, even if I changed the notification settings to "When submitting the form" and submit the form with ID 5006 which does not have any notification configured, still it sends the notification, this is really strange.

I've installed Layouts plugin on my site, you can use the following link:
=> hidden link
User: demo
PWD: Admin@999

Can you please see if you can able to reproduce the issue with my test site.

In addition to that, on your site, in order to minimize the cause of the issue:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes? - Do you see any difference?

#1886051

I'm having trouble creating layouts on your demo site. I create one new layout. When I tried to create a second layout and it doesn't show up in the unassigned layouts.

Maybe I can help you by identifying the content templates on the page we're debugging. I put in comments at the end of every form, content template, view and layout on my site which are only displayed if the logged in user is an admin. That way you can scan the page and see what is on the page. So you'll see text on the page telling you which content templates are on the page.

The page where the problem is occurring is hidden link
So it's displaying a job application using Layout 5008. That layout contains the following items:
+ Form 5587 (which is the Recruiter Tools portion of the page)
+ Content Template 5577 (Applicant Information section down to Military Service section)
+ Content Template 5578 (Employment History)
- 5578 includes View 4883
+ Content Template 5579 (Reference & Acceptance sections)
+ Content Template 5580 (Application Submission section)

From your message I understand defining a notification on any form will be global. So any time that condition is met, regardless of whether or not the form triggered the condition, the notification will be sent. Is that correct? If yes, then is there another approach I can take to only send a notification when the following condition is met?

Send notification when submission-status field is changed to "submitted" by the author of the post. The author of the job application is the person applying. So I only want to send the notification when that person applying changes the status to "submitted". Is there a way to do this?

#1888783

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Its just really hard to work with your site as it involves everything like Layouts, views, forms etc..etc.. as within layouts cells you are using the content template and within content template you are using views or forms.

So, if you want I can setup a brand new test site and share with you the access details and then you should try to add edit form and see if you able to reproduce the issue.

From your message I understand defining a notification on any form will be global. So any time that condition is met, regardless of whether or not the form triggered the condition, the notification will be sent. Is that correct? If yes, then is there another approach I can take to only send a notification when the following condition is met?
==>
It will be global when you set the notification setting to "When custom fields are modified".

Send notification when submission-status field is changed to "submitted" by the author of the post. The author of the job application is the person applying. So I only want to send the notification when that person applying changes the status to "submitted". Is there a way to do this?
==>
We offer a notification setting "Send notification to the post author" - can you please check if that works for you, I doubt because when you set notification to setting "When custom fields are modified" - it becomes global.

"When custom fields are modified" part is always been a tricky one and we do have internal ticket to improve that as much as we can but for now I guess the best approach is to setup a test site and run a test - please let me know if this sounds good to you then I will go ahead and setup a test site for you.

#1888821

Thank you for your help. I don't feel it's necessary to setup the test site and do further testing. Since the trigger "When custom fields are modified" makes it global that tells me I can't achieve what I'm looking for.

I'm curious about your comment about my implementation being very complicated with layouts containing content templates which include views. Is that approach risky or a bad way to develop? Or is it just complicated for debugging. This site is very involved with a large number of post types, forms, layouts, views, etc. I'd be interested if you spotted an approach which isn't the best way to develop.