Skip Navigation

[Resolved] How do I use my hidden generic fields in the email i compose for my form?

This support ticket is created 3 years, 4 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.

This topic contains 2 replies, has 2 voices.

Last updated by brendaT-2 3 years, 4 months ago.

Author
Posts
#2291959

Tell us what you are trying to do?
I have a form with 2 hidden fields.
[cred_generic_field field='hiddenfirstname']
[cred_generic_field field='hiddenlastname']
I populate these fields from custom fields in the post the user is viewing. This is working well. Now, I want to compose an email notification and use the fields in the email - eg:
Dear [ 'hiddenfirstname'] ['hiddenlastname'], thank you for .....

What is the syntax to reference these fields? I hope you can help! thanks.

#2292039

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

To use the generic fields in notifications you need to generate custom placeholders for them which you can then use in the body (or subject) of your notification emails.

There is an example of how to do that in this thread: https://toolset.com/forums/topic/include-custom-generic-fields-added-to-the-form-in-the-notification-email/

And a fuller explanation in this page of documentation: https://toolset.com/documentation/programmer-reference/forms/how-to-use-custom-placeholders-in-cred-notifications/

#2292343

My issue is resolved now. Thank you!
Thanks so much - I could not find that answer 0- didn't know it would be listed as placeholder field - searched madly using other terms and couldn't find it.
Is there nothing toolset cant do? This answer is part of a solution that I have been trying to resolve with formidable for 1 month. Done & dusted in 1 night. thanks.