Skip Navigation

[Resolved] CRED Send email notification only if generic field is checked

This thread is resolved. Here is a description of the problem and solution.

Problem:

Create a generic field that I can use as a condition to send an email notification when a form is submitted.

Solution:

This issue has been put into our to-do list as a bug, our developers will take care of it.

Relevant Documentation:

This support ticket is created 5 years, 6 months 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.

Our next available supporter will start replying to tickets in about 7.84 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by Luo Yang 5 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1243198
Screen Shot 2019-05-13 at 1.02.29 PM.png

Hello! Thank you for helping with this weird issue. I have scoured the documentation and cannot find any reference to this particular functionality.

I am trying to:
Create a generic field that I can use as a condition to send an email notification when a form is submitted.
Below is the generic field I want to use. Essentially the box will be checked or unchecked depending on what page the form is viewed on.

	[cred_generic_field type='checkbox' field='nielson-owned' class='' urlparam='']
              {
                    "required":1,
                    "validate_format":0,
                    "persist":1,
      		    "default":"0",
              	    "checked":"[types field='nielsen-licensed' output='raw'][/types]",
		    "label":"Nielson Licensed"
              }
	[/cred_generic_field]

Link to a page where the issue can be seen:
hidden link

I expected to see:
I expect to see my field in the dropdown, or have a space allowing me to enter the name of the field I want to check.

Instead, I got:
It only shows custom fields associated with the post type. This seems to be different than in previous versions of Toolset CRED.

#1243380

Hello,

According to our document, there isn't such an option to send the email notification on generic field:
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/

In your case, you are storing the generic field "nielson-owned" into database, the meta-key is the same "nielson-owned", I suggest you try to convert the "nielson-owned" field as a checkbox field in Toolset form, for example:
1) Dashboard-> Toolset-> Post Forms, click "Manage non-Toolset Post Fields", manage the "nielson-owned" field as a checkbox field,
2) Edit your post form, put above "nielson-owned" field into form content, then you will be able to use "nielson-owned" field as email notification condition.

More help:
https://toolset.com/documentation/user-guides/letting-cred-edit-custom-fields-created-by-other-plugins/

#1244306
email-jake-denning.png

This is a little disappointing, and I'm not sure it's 100% accurate, because I have a previous version of Toolset Cred installed on another website and it definitely does let me send emails on conditions based on generic fields (CRED v. 1.9.5).

I'm not trying to update any custom fields from Toolset or another program. The checkbox is only a flag to determine whether an email should be sent. It seems that the functionality is built into Toolset already, it's just not allowing me to select the field from the dropdown.

Attached is an image from the other website that does have the behavior I'm looking for, and the generic field that it is finding.


[cred_generic_field field='email-jake-denning' type='checkbox' class='' urlparam='']
{
"required":0,
"validate_format":0,
"checked":0,
"default":"1",
"persist" : 1,
"label":"Email Jake Denning"
}
[/cred_generic_field]

#1244403

Thanks for the details, I have tested Toolset Form plugin version 1.9.5, I do see the same result as your screenshot, so I have escalated this thread, will update here if there is any news.

#1244434

Thank you for testing, and confirming the issue. Your effort is much appreciated.

#1244472

Here is the update, this issue has been put into our to-do list as a bug, our developers will take care of it.

#1244618

Okay, thank you. Hopefully an update in the near future has a fix for it.

#1246338

Here is the update:
It has been put into our known issue list:
https://toolset.com/errata/generic-but-persisting-form-fields-are-not-available-as-notification-triggers-on-post-and-user-forms/

Our developers are working on it.