Its possible send contatc form name in email body?
[contact-form-7 id="86" title="Contact form 1"]
I try the Contact Form 7 Dynamic Text Extension — WordPress Plugins, but my form are in modal items, when i click in one, show me the modal, and change the url (add -> ?id=23) but the Dynamic Text Extension only accept this field in reload page not after.
Any help?
thanks
Contact Form 7 supports the hidden form-tag type to represent hidden fields. id attribute value of the input element. class attribute value of the input element. To set two or more classes, you can use multiple class: option, like [hidden your-text class:y2008 class:m01 class:d01] .
To set placeholder text in a field in your form, you only need to add a placeholder option and a text value to the form-tag representing the field. You can use the placeholder option in the following types of form tags: text, email, url, tel, textarea, number, range, date, and captchar.
I did something similar with the hidden input field and custom shortcode in functions.php. This might helps too
wpcf7_add_shortcode('hidden', 'wpcf7_sourceurl_shortcode_handler', true);
function wpcf7_sourceurl_shortcode_handler($tag) {
if (!is_array($tag)) return '';
$name = $tag['name'];
if (empty($name)) return '';
$html = '<input type="hidden" name="' . $name . '" value="' . get_the_title() . '" />';
return $html;
}
Then add custom tag in contact form 7
[hidden pageTitle]
In email settings
Page title is: [pageTitle]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With