- This topic has 3 replies, 1 voice, and was last updated 3 years, 10 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Other › WP Contact form 7 Dynamic Text plugin, feel like the solution should be simple
Hey folks, this is my first post was looking for some assistance. Trying to pre-populate a Contact Form 7 form with the title of the post it’s sent from, which seems like it should be easy, but I’m having trouble.
Here’s what I have in my contact form:
[dynamichidden chapter “CF7_get_post_var key=’title’”]
[submit “Send”]
Here’s what I have in the message body in my “mail” tab:
From: [your-name]
Subject: [your-subject]
Message Body:
[title]
[your-message]
This is where I got those instructions:
would appreciate any assistance because I’m probably only screwing one hting up.
Hi,
try to change de quotes maybe helps.
yours:
[dynamichidden chapter “CF7_get_post_var key=’title’”]
original:
[dynamictext dynamicname „CF7_get_post_var key=’title’“]
also check this: https://de-ch.wordpress.org/plugins/contact-form-7-dynamic-text-extension/
Contact form 7 Dynamic Fields is to be setup dynamic field custom post type
You can just use cf7 plugin features:
Add hidden field in the form template, like
[hidden title default:shortcode_attr]
Then use this field
[title]
in the mail body.
Works for me.