Saltar navegación

[Resuelto] CRED data from generic field not showing with custom placeholder in email

This support ticket is created hace 3 años, 3 meses. 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
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: Africa/Casablanca (GMT+01:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Jamal hace 3 años, 3 meses.

Asistido por: Jamal.

Autor
Mensajes
#2230939

Tell us what you are trying to do?

I have a generic multiple checkbox field, which is populated by a view. I need the users input to be displayed in the notification email sent by the form upon submitting.

Is there any documentation that you are following?

Yes. https://toolset.com/forums/topic/include-custom-generic-fields-added-to-the-form-in-the-notification-email/

What gets printed in the email is "Array", rather than the users input on the form.

Is there a similar example that we can see?

What is the link to your site?

enlace oculto

#2231719

Hello and thank you for contacting the Toolset support.

The multiple checkbox field will be saved as an array instead of a simple string(similarly to the name field from the reference ticket). You will need to convert the array into a string, something like:

$newPlaceHolders = array(
'%%Checkbox%%' => implode(', ', $_REQUEST['the-generic-checkbox-field']),
);

enlace oculto

I hope this helps. Let me know if you have any questions.