Hi, I'm trying to output the data submitted via a cred form into an email that I'm generating in my WordPress site's functions.php file. I'm doing it successfully except when I try to output a checkbox group field.
I've been able to get it to output the word "Array", but that's about it.
I've also tried iterating through the array with a foreach statement, but I'm obviously doing something wrong.
The attached screenshot shows my Field Group setup for the checkbox group submitter-organization-classification.
In my functions.php file, I'm getting the field's values like this:
Our Checkboxes values are stored in a serialised format in the database so you will need to make use of our custom function in order to retrieve the value.
I didn't have any luck with that the first time around and have a question. I know the types_render_field function is part of the Toolset API. My PHP code is running in my theme's functions.php file. To get that function to work, do I need to call the API somehow?