Add custom text to Contact Form 7 via shortcode WordPress

admin

Administrator
Staff member
I'm using Contact Fom 7 and need to add a custom text somewhere to the form.

I'm getting the custom text with PHP from a subfield of Advanced Custom Fields. I know, that there is an extra Plugin called "Contact Form 7 Dynamic Text Extension" for that (<a href="https://de.wordpress.org/plugins/contact-form-7-dynamic-text-extension/" rel="nofollow noreferrer">https://de.wordpress.org/plugins/contact-form-7-dynamic-text-extension/</a>). But because the text is in a subfield, I cant use it.

So, what I need is a text in an hidden input field or in the generated e-mail of the form.

What I thought was a custom parameter in the CF7 shortcode itself. Like this:

Code:
[contact-form-7 id="1" title="Title" customtext="Text"]

Is that possible?

Or is it possible to use the title and add it to an input field or in the e-mail of the form?