Skip Navigation

[Résolu] CRED data from generic field not showing with custom placeholder in email

This support ticket is created Il y a 3 années. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Jamal Il y a 3 années.

Assisté par: Jamal.

Auteur
Publications
#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?

lien caché

#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']),
);

lien caché

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