Skip Navigation

[Resolved] CRED select created by view, use values in email notifications

This support ticket is created 5 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 3 replies, has 2 voices.

Last updated by Minesh 5 years ago.

Assisted by: Minesh.

Author
Posts
#1419611
emailfied.JPG

I have a cred form:

[credform]
	
[cred_generic_field type='checkboxes' field='order-post-select' class='matched-select']
{
"required":1,
"default":[],
"options":[[wpv-view name="orders-cred"]]
}
[/cred_generic_field]
	

	[cred_field field='form_submit' output='bootstrap' value='Remove' class='matched-btn btn btn-primary btn-lg']
[/credform]

with checkboxes created by a view:

[wpv-layout-start]

	[wpv-items-found]

	<!-- wpv-loop-start -->

		<wpv-loop>

			[wpv-item index=other]

				{"value": "[wpv-post-field name='_billing_email']", "label": "[wpv-post-field name='_billing_first_name'] [wpv-post-field name='_billing_last_name']"},

			[wpv-item index=last]

				{"value": "[wpv-post-field name='_billing_email']", "label": "[wpv-post-field name='_billing_first_name'] [wpv-post-field name='_billing_last_name']"}

		</wpv-loop>

	<!-- wpv-loop-end -->

	[/wpv-items-found]

	[wpv-no-items-found]

		{"value": "", "label": "No items found"}

	[/wpv-no-items-found]

[wpv-layout-end]

I'm trying to get the result of this checkbox field to be able to populate the emialto field in notifications. but It's possible that field does not recognize this checkbox field as an email option.

How to go about using this checkbox field to get the user selected email addresses to be able to populate the notification field.

Possible?

thanks much++

#1421739

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Actually, checkboxes are special fields and as you are using the generic field the option you selected will not work.

You need to use the Toolset form's API hook "cred_notification_recipients" to send the notification to your preferred emails where you should write the code to grab your selected checkboxes.

More info:
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_notification_recipients

If you need further assistance on this, please feel free to get in touch with me problem URL where you added the form and access details.

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

#1426739

Thanks much, I’ve not had a chance to look at this, as I’m on vacation till the 12th of January. I’m writing now because I got a Bot alert that the post would be closed. Hoping I can leave it set to open till my return when I have time to look at the issue. Thanks

#1427445

Minesh
Supporter

Languages: English (English )

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

Ok - great. Just adding comments here - you can reply in this ticket next week to keep this open.